Class AxisSet

  • All Implemented Interfaces:
    IAxisSet

    public class AxisSet
    extends java.lang.Object
    implements IAxisSet
    An axis container. By default, axis set has X Axis and Y axis with axis id 0.
    • Constructor Detail

      • AxisSet

        public AxisSet​(Chart chart)
        Constructor.
        Parameters:
        chart - the chart
    • Method Detail

      • createXAxis

        public int createXAxis()
        Description copied from interface: IAxisSet
        Creates the X axis. This method is used for multiple axes chart.
        Specified by:
        createXAxis in interface IAxisSet
        Returns:
        the axis id
      • createYAxis

        public int createYAxis()
        Description copied from interface: IAxisSet
        Creates the Y axis. This method is used for multiple axes chart.
        Specified by:
        createYAxis in interface IAxisSet
        Returns:
        the axis id
      • getXAxis

        public IAxis getXAxis​(int id)
        Description copied from interface: IAxisSet
        Gets the X axis for the given id.
        Specified by:
        getXAxis in interface IAxisSet
        Parameters:
        id - the axis id
        Returns:
        the X axis for the given axis id, or null if there is no corresponding axis.
      • getYAxis

        public IAxis getYAxis​(int id)
        Description copied from interface: IAxisSet
        Gets the Y axis for given index.
        Specified by:
        getYAxis in interface IAxisSet
        Parameters:
        id - the axis id
        Returns:
        the Y axis for the given axis id, or null if there is no corresponding axis.
      • getXAxes

        public IAxis[] getXAxes()
        Description copied from interface: IAxisSet
        Gets the array of X axes.
        Specified by:
        getXAxes in interface IAxisSet
        Returns:
        the array of X axes
      • getYAxes

        public IAxis[] getYAxes()
        Description copied from interface: IAxisSet
        Gets the array of Y axes.
        Specified by:
        getYAxes in interface IAxisSet
        Returns:
        the array of Y axes
      • getAxes

        public IAxis[] getAxes()
        Description copied from interface: IAxisSet
        Gets the array of all axes.
        Specified by:
        getAxes in interface IAxisSet
        Returns:
        the array of all axes
      • getXAxisIds

        public int[] getXAxisIds()
        Description copied from interface: IAxisSet
        Gets the array of X axis ids.
        Specified by:
        getXAxisIds in interface IAxisSet
        Returns:
        the array of X axis ids
      • getYAxisIds

        public int[] getYAxisIds()
        Description copied from interface: IAxisSet
        Gets the array of Y axis ids.
        Specified by:
        getYAxisIds in interface IAxisSet
        Returns:
        the array of Y axis ids
      • deleteXAxis

        public void deleteXAxis​(int id)
        Description copied from interface: IAxisSet
        Deletes the X Axis for given axis id. The series on the deleted axis will be moved onto the axis id '0'. The axis whose id is '0' cannot be removed.
        Specified by:
        deleteXAxis in interface IAxisSet
        Parameters:
        id - the axis id
      • deleteYAxis

        public void deleteYAxis​(int id)
        Description copied from interface: IAxisSet
        Deletes the Y Axis for given id. The series on the deleted axis will be moved onto the axis id '0'. The axis whose id is '0' cannot be removed.
        Specified by:
        deleteYAxis in interface IAxisSet
        Parameters:
        id - the axis id
      • adjustRange

        public void adjustRange()
        Description copied from interface: IAxisSet
        Adjusts the axis range of all axes.
        Specified by:
        adjustRange in interface IAxisSet
      • zoomIn

        public void zoomIn()
        Description copied from interface: IAxisSet
        Zooms in all axes.
        Specified by:
        zoomIn in interface IAxisSet
      • zoomOut

        public void zoomOut()
        Description copied from interface: IAxisSet
        Zooms out all axes.
        Specified by:
        zoomOut in interface IAxisSet
      • updateLayoutData

        public void updateLayoutData()
        Updates the layout data.
      • refresh

        public void refresh()
        Refreshes the cache.
      • dispose

        public void dispose()
        Disposes the resources.