Package org.swtchart.internal.axis
Class AxisSet
java.lang.Object
org.swtchart.internal.axis.AxisSet
- All Implemented Interfaces:
IAxisSet
An axis container. By default, axis set has X Axis and Y axis with axis id 0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adjusts the axis range of all axes.int
Creates the X axis.int
Creates the Y axis.void
deleteXAxis
(int id) Deletes the X Axis for given axis id.void
deleteYAxis
(int id) Deletes the Y Axis for given id.void
dispose()
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.void
refresh()
Refreshes the cache.void
Updates the layout data.void
zoomIn()
Zooms in all axes.void
zoomOut()
Zooms out all axes.
-
Constructor Details
-
AxisSet
Constructor.- Parameters:
chart
- the chart
-
-
Method Details
-
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 interfaceIAxisSet
- 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 interfaceIAxisSet
- Returns:
- the axis id
-
getXAxis
Description copied from interface:IAxisSet
Gets the X axis for the given id. -
getYAxis
Description copied from interface:IAxisSet
Gets the Y axis for given index. -
getXAxes
Description copied from interface:IAxisSet
Gets the array of X axes. -
getYAxes
Description copied from interface:IAxisSet
Gets the array of Y axes. -
getAxes
Description copied from interface:IAxisSet
Gets 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 interfaceIAxisSet
- 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 interfaceIAxisSet
- 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 interfaceIAxisSet
- 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 interfaceIAxisSet
- 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 interfaceIAxisSet
-
zoomIn
public void zoomIn()Description copied from interface:IAxisSet
Zooms in all axes. -
zoomOut
public void zoomOut()Description copied from interface:IAxisSet
Zooms out all axes. -
updateLayoutData
public void updateLayoutData()Updates the layout data. -
refresh
public void refresh()Refreshes the cache. -
dispose
public void dispose()Disposes the resources.
-