Class Grid<T extends Serializable>

  • Type Parameters:
    T - Type of Axis
    All Implemented Interfaces:
    Serializable, Element

    public class Grid<T extends Serializable>
    extends Object
    implements Element
    Object representing the grid on which the plot is drawn. The grid in this context is the area bounded by the axes, the area which will contain the series. Note, the series are drawn on their own canvas. The Grid object cannot be instantiated directly, but is created by the Plot oject. Grid properties can be set or overriden by the options passed in from the user.
    Author:
    inaiat
    See Also:
    Serialized Form
    • Constructor Detail

      • Grid

        public Grid()
    • Method Detail

      • getAxis

        public Axis<T>[] getAxis()
        Gets the axis.
        Returns:
        array de Axis
      • setAxis

        public void setAxis​(Axis<T>[] axis)
        Sets the axis.
        Parameters:
        axis - the new axis
      • getBackground

        public String getBackground()
        Gets the background.
        Returns:
        background
      • setBackground

        public void setBackground​(String background)
        Sets the background.
        Parameters:
        background - the new background
      • getBorderColor

        public String getBorderColor()
        Gets the border color.
        Returns:
        borderColor
      • setBorderColor

        public void setBorderColor​(String borderColor)
        Sets the border color.
        Parameters:
        borderColor - the new border color
      • getBorderWidth

        public Double getBorderWidth()
        Gets the border width.
        Returns:
        borderWidth
      • setBorderWidth

        public void setBorderWidth​(Double borderWidth)
        Sets the border width.
        Parameters:
        borderWidth - the new border width
      • getBottom

        public Float getBottom()
        Gets the bottom.
        Returns:
        bottom
      • setBottom

        public void setBottom​(Float bottom)
        Sets the bottom.
        Parameters:
        bottom - the new bottom
      • getDrawBorder

        public Boolean getDrawBorder()
        Gets the draw border.
        Returns:
        drawBorder true ou false
      • setDrawBorder

        public void setDrawBorder​(Boolean drawBorder)
        Sets the draw border.
        Parameters:
        drawBorder - the new draw border
      • getDrawGridLines

        public Boolean getDrawGridLines()
        Gets the draw grid lines.
        Returns:
        drawGridLines true ou false
      • setDrawGridLines

        public void setDrawGridLines​(Boolean drawGridLines)
        Sets the draw grid lines.
        Parameters:
        drawGridLines - the new draw grid lines
      • getGridLineColor

        public String getGridLineColor()
        Gets the grid line color.
        Returns:
        gridLineColor
      • setGridLineColer

        public void setGridLineColer​(String gridLineColor)
        Sets the grid line color.
        Parameters:
        gridLineColor - the new grid line color
      • getGridLineWidth

        public Double getGridLineWidth()
        Gets the grid line width.
        Returns:
        gridLineWidth
      • setGridLineWidth

        public void setGridLineWidth​(Double gridLineWidth)
        Sets the grid line width.
        Parameters:
        gridLineWidth - the new grid line width
      • getHeight

        public Float getHeight()
        Gets the height.
        Returns:
        height
      • setHeight

        public void setHeight​(Float height)
        Sets the height.
        Parameters:
        height - the new height
      • getLeft

        public Float getLeft()
        Gets the left.
        Returns:
        left
      • setLeft

        public void setLeft​(Float left)
        Sets the left.
        Parameters:
        left - the new left
      • getRendererOptions

        public String[] getRendererOptions()
        Gets the renderer options.
        Returns:
        rendererOptions
      • setRendererOptions

        public void setRendererOptions​(String[] rendererOptions)
        Sets the renderer options.
        Parameters:
        rendererOptions - the new renderer options
      • getRight

        public Float getRight()
        Gets the right.
        Returns:
        right
      • setRight

        public void setRight​(Float right)
        Sets the right.
        Parameters:
        right - the new right
      • getShadow

        public Boolean getShadow()
        Gets the shadow.
        Returns:
        shadow
      • setShadow

        public void setShadow​(Boolean shadow)
        Sets the shadow.
        Parameters:
        shadow - the new shadow
      • getShadowAlpha

        public String getShadowAlpha()
        Gets the shadow alpha.
        Returns:
        shadowAlpha
      • setShadowAlpha

        public void setShadowAlpha​(String shadowAlpha)
        Sets the shadow alpha.
        Parameters:
        shadowAlpha - the new shadow alpha
      • getShadowAngle

        public Double getShadowAngle()
        Gets the shadow angle.
        Returns:
        shadowAngle
      • setShadowAngle

        public void setShadowAngle​(Double shadowAngle)
        Sets the shadow angle.
        Parameters:
        shadowAngle - the new shadow angle
      • getShadowColor

        public String getShadowColor()
        Gets the shadow color.
        Returns:
        shadowColor
      • setShadowColor

        public void setShadowColor​(String shadowColor)
        Sets the shadow color.
        Parameters:
        shadowColor - the new shadow color
      • getShadowDepth

        public Double getShadowDepth()
        Gets the shadow depth.
        Returns:
        shadowDepth
      • setShadowDepth

        public void setShadowDepth​(Double shadowDepth)
        Sets the shadow depth.
        Parameters:
        shadowDepth - the new shadow depth
      • getShadowOffset

        public Double getShadowOffset()
        Gets the shadow offset.
        Returns:
        shadowOffSet
      • setShadowOffset

        public void setShadowOffset​(Double shadowOffset)
        Sets the shadow offset.
        Parameters:
        shadowOffset - the new shadow offset
      • getShadowWidth

        public Double getShadowWidth()
        Gets the shadow width.
        Returns:
        shadowWidth
      • setShadowWidth

        public void setShadowWidth​(Double shadowWidth)
        Sets the shadow width.
        Parameters:
        shadowWidth - the new shadow width
      • getTop

        public Float getTop()
        Gets the top.
        Returns:
        top
      • setTop

        public void setTop​(Float top)
        Sets the top.
        Parameters:
        top - the new top
      • getWidth

        public Float getWidth()
        Gets the width.
        Returns:
        width
      • setWidth

        public void setWidth​(Float width)
        Sets the width.
        Parameters:
        width - the new width