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 Summary
Modifier and TypeMethodDescriptionvoidAdjusts the axis range of all axes.intCreates the X axis.intCreates the Y axis.voiddeleteXAxis(int id) Deletes the X Axis for given axis id.voiddeleteYAxis(int id) Deletes the Y Axis for given id.IAxis[]getAxes()Gets the array of all axes.IAxis[]getXAxes()Gets the array of X axes.getXAxis(int id) Gets the X axis for the given id.int[]Gets the array of X axis ids.IAxis[]getYAxes()Gets the array of Y axes.getYAxis(int id) Gets the Y axis for given index.int[]Gets the array of Y axis ids.voidzoomIn()Zooms in all axes.voidzoomOut()Zooms out all axes.
-
Method Details
-
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
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
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
-
getYAxes
-
getAxes
-
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:
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:
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.
-