Package org.swtchart.internal.axis
Class AxisSet
- java.lang.Object
-
- org.swtchart.internal.axis.AxisSet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustRange()
Adjusts the axis range of all axes.int
createXAxis()
Creates the X axis.int
createYAxis()
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.IAxis
getXAxis(int id)
Gets the X axis for the given id.int[]
getXAxisIds()
Gets the array of X axis ids.IAxis[]
getYAxes()
Gets the array of Y axes.IAxis
getYAxis(int id)
Gets the Y axis for given index.int[]
getYAxisIds()
Gets the array of Y axis ids.void
refresh()
Refreshes the cache.void
updateLayoutData()
Updates the layout data.void
zoomIn()
Zooms in all axes.void
zoomOut()
Zooms out all axes.
-
-
-
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 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
public IAxis getXAxis(int id)
Description copied from interface:IAxisSet
Gets the X axis for the given id.
-
getYAxis
public IAxis getYAxis(int id)
Description copied from interface:IAxisSet
Gets the Y axis for given index.
-
getXAxes
public IAxis[] getXAxes()
Description copied from interface:IAxisSet
Gets the array of X axes.
-
getYAxes
public IAxis[] getYAxes()
Description copied from interface:IAxisSet
Gets the array of Y axes.
-
getAxes
public IAxis[] 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.
-
-