Package org.swtchart

Interface IAxisSet

  • All Known Implementing Classes:
    AxisSet

    public interface IAxisSet
    An axis container. By default, axis set has X Axis and Y axis with axis id 0.
    • Method Detail

      • createXAxis

        int createXAxis()
        Creates the X axis. This method is used for multiple axes chart.
        Returns:
        the axis id
      • createYAxis

        int createYAxis()
        Creates the Y axis. This method is used for multiple axes chart.
        Returns:
        the axis id
      • getXAxis

        IAxis getXAxis​(int id)
        Gets the X axis for the given id.
        Parameters:
        id - the axis id
        Returns:
        the X axis for the given axis id, or null if there is no corresponding axis.
      • getYAxis

        IAxis getYAxis​(int id)
        Gets the Y axis for given index.
        Parameters:
        id - the axis id
        Returns:
        the Y axis for the given axis id, or null if there is no corresponding axis.
      • getXAxes

        IAxis[] getXAxes()
        Gets the array of X axes.
        Returns:
        the array of X axes
      • getYAxes

        IAxis[] getYAxes()
        Gets the array of Y axes.
        Returns:
        the array of Y axes
      • getAxes

        IAxis[] getAxes()
        Gets the array of all axes.
        Returns:
        the array of all axes
      • getXAxisIds

        int[] getXAxisIds()
        Gets the array of X axis ids.
        Returns:
        the array of X axis ids
      • getYAxisIds

        int[] getYAxisIds()
        Gets the array of Y axis ids.
        Returns:
        the array of Y axis ids
      • deleteXAxis

        void deleteXAxis​(int id)
        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.
        Parameters:
        id - the axis id
        Throws:
        java.lang.IllegalArgumentException - if the given axis id is '0', or if there is no axis for the given id.
      • deleteYAxis

        void deleteYAxis​(int id)
        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.
        Parameters:
        id - the axis id
        Throws:
        java.lang.IllegalArgumentException - if the given axis id is '0', or if there is no axis for the given id.
      • adjustRange

        void adjustRange()
        Adjusts the axis range of all axes.
      • zoomIn

        void zoomIn()
        Zooms in all axes.
      • zoomOut

        void zoomOut()
        Zooms out all axes.