Class Axis<T extends Serializable>

  • Type Parameters:
    T - type of Axis, can be String, Number, Date, etc. This is necessary because min,max and tickInterval can be variants types.
    All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    AxisNumber, AxisString, X2Axis, XAxis, Y2Axis, YAxis

    public class Axis<T extends Serializable>
    extends Object
    implements Serializable
    An individual axis object. Cannot be instantiated directly, but created by the Plot oject. Axis properties can be set or overriden by the options passed in from the user. See http://www.jqplot.com/docs/files/jqplot-core-js.html#Axis
    Author:
    inaiat
    See Also:
    Serialized Form
    • Constructor Detail

      • Axis

        public Axis()
    • Method Detail

      • getTickInterval

        public Serializable getTickInterval()
        Gets the tick interval.
        Returns:
        the tick interval
      • setTickInterval

        public void setTickInterval​(Serializable tickInterval)
        Sets the tick interval.
        Parameters:
        tickInterval - the new tick interval
      • getPadMin

        public Float getPadMin()
        Gets the pad min.
        Returns:
        the pad min
      • setPadMin

        public void setPadMin​(Float padMin)
        Sets the pad min.
        Parameters:
        padMin - the new pad min
      • getPadMax

        public Float getPadMax()
        Gets the pad max.
        Returns:
        the pad max
      • setPadMax

        public void setPadMax​(Float padMax)
        Sets the pad max.
        Parameters:
        padMax - the new pad max
      • getShow

        public Boolean getShow()
        Gets the show.
        Returns:
        the show
      • setShow

        public void setShow​(Boolean show)
        Sets the show.
        Parameters:
        show - the show to set
      • getAutoScale

        public Boolean getAutoScale()
        Gets the auto scale.
        Returns:
        the autoScale
      • setAutoScale

        public Axis<T> setAutoScale​(Boolean autoScale)
        Sets the auto scale.
        Parameters:
        autoScale - the autoScale to set
        Returns:
        Axis
      • getTickOptions

        public TickOptions getTickOptions()
        Gets the tick options.
        Returns:
        the tickOptions
      • setTickOptions

        public Axis<T> setTickOptions​(TickOptions tickOptions)
        Sets the tick options.
        Parameters:
        tickOptions - the tickOptions to set
        Returns:
        Axis
      • getLabelRenderer

        public JqPlotResources getLabelRenderer()
        Gets the label renderer.
        Returns:
        the labelRenderer
      • setLabelRenderer

        public Axis<T> setLabelRenderer​(JqPlotResources labelRenderer)
        Sets the label renderer.
        Parameters:
        labelRenderer - the labelRenderer to set
        Returns:
        Axis
      • getTickRenderer

        public JqPlotResources getTickRenderer()
        Gets the tick renderer.
        Returns:
        the tickRenderer
      • setTickRenderer

        public Axis<T> setTickRenderer​(JqPlotResources tickRenderer)
        Sets the tick renderer.
        Parameters:
        tickRenderer - the tickRenderer to set
        Returns:
        Axis
      • rendererOptions

        public Axis<T> rendererOptions​(RendererOptions rendererOptions)
        Renderer options.
        Parameters:
        rendererOptions - the renderer options
        Returns:
        the serie
      • getRendererOptions

        public RendererOptions getRendererOptions()
        Gets the renderer options.
        Returns:
        the renderer options
      • setRendererOptions

        public Axis<T> setRendererOptions​(RendererOptions rendererOptions)
        Sets the renderer options.
        Parameters:
        rendererOptions - the new renderer options
        Returns:
        Axis
      • getLabel

        public String getLabel()
        Gets the label.
        Returns:
        the label
      • setLabel

        public Axis<T> setLabel​(String label)
        Sets the label.
        Parameters:
        label - the label to set
        Returns:
        Axis
      • getPad

        public Float getPad()
        Gets the pad.
        Returns:
        the pad
      • setPad

        public Axis<T> setPad​(Float pad)
        Sets the pad.
        Parameters:
        pad - the pad to set
        Returns:
        Axis
      • getRenderer

        public JqPlotResources getRenderer()
        Gets the renderer.
        Returns:
        the renderer
      • setRenderer

        public Axis<T> setRenderer​(JqPlotResources renderer)
        Sets the renderer.
        Parameters:
        renderer - the renderer to set
        Returns:
        Axis
      • getTicks

        public String[] getTicks()
        Gets the ticks.
        Returns:
        the ticks
      • setTicks

        public Axis<T> setTicks​(String... ticks)
        Sets the ticks.
        Parameters:
        ticks - the ticks to set
        Returns:
        Axis
      • getMin

        public Serializable getMin()
        Gets the min.
        Returns:
        the min
      • setMin

        public Axis<T> setMin​(Serializable min)
        Sets the min.
        Parameters:
        min - the new min
        Returns:
        Axis
      • getMax

        public Serializable getMax()
        Gets the max.
        Returns:
        the max
      • setMax

        public Axis<T> setMax​(Serializable max)
        Sets the max.
        Parameters:
        max - the new max
        Returns:
        Axis
      • tickOptionsInstance

        public TickOptions tickOptionsInstance()
      • rendererOptionsInstance

        public RendererOptions rendererOptionsInstance()