Class AxisSet
java.lang.Object
org.swtchart.internal.axis.AxisSet
- All Implemented Interfaces:
IAxisSet
-
Constructor Summary
Constructors -
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.voiddispose()Disposes the resources.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.voidrefresh()Refreshes the cache.voidUpdates the layout data.voidzoomIn()Zooms in all axes.voidzoomOut()Zooms out all axes.
-
Constructor Details
-
AxisSet
-
-
Method Details
-
createXAxis
public int createXAxis()Description copied from interface:IAxisSetCreates the X axis. This method is used for multiple axes chart.- Specified by:
createXAxisin interfaceIAxisSet- Returns:
- the axis id
-
createYAxis
public int createYAxis()Description copied from interface:IAxisSetCreates the Y axis. This method is used for multiple axes chart.- Specified by:
createYAxisin interfaceIAxisSet- Returns:
- the axis id
-
getXAxis
-
getYAxis
-
getXAxes
-
getYAxes
-
getAxes
-
getXAxisIds
public int[] getXAxisIds()Description copied from interface:IAxisSetGets the array of X axis ids.- Specified by:
getXAxisIdsin interfaceIAxisSet- Returns:
- the array of X axis ids
-
getYAxisIds
public int[] getYAxisIds()Description copied from interface:IAxisSetGets the array of Y axis ids.- Specified by:
getYAxisIdsin interfaceIAxisSet- Returns:
- the array of Y axis ids
-
deleteXAxis
public void deleteXAxis(int id) Description copied from interface:IAxisSetDeletes 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:
deleteXAxisin interfaceIAxisSet- Parameters:
id- the axis id
-
deleteYAxis
public void deleteYAxis(int id) Description copied from interface:IAxisSetDeletes 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:
deleteYAxisin interfaceIAxisSet- Parameters:
id- the axis id
-
adjustRange
public void adjustRange()Description copied from interface:IAxisSetAdjusts the axis range of all axes.- Specified by:
adjustRangein interfaceIAxisSet
-
zoomIn
-
zoomOut
-
updateLayoutData
public void updateLayoutData()Updates the layout data. -
refresh
public void refresh()Refreshes the cache. -
dispose
public void dispose()Disposes the resources.
-