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 voidadjustRange()Adjusts the axis range of all axes.intcreateXAxis()Creates the X axis.intcreateYAxis()Creates 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.IAxisgetXAxis(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.IAxisgetYAxis(int id)Gets the Y axis for given index.int[]getYAxisIds()Gets the array of Y axis ids.voidrefresh()Refreshes the cache.voidupdateLayoutData()Updates the layout data.voidzoomIn()Zooms in all axes.voidzoomOut()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: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
public IAxis getXAxis(int id)
Description copied from interface:IAxisSetGets the X axis for the given id.
-
getYAxis
public IAxis getYAxis(int id)
Description copied from interface:IAxisSetGets the Y axis for given index.
-
getXAxes
public IAxis[] getXAxes()
Description copied from interface:IAxisSetGets the array of X axes.
-
getYAxes
public IAxis[] getYAxes()
Description copied from interface:IAxisSetGets the array of Y axes.
-
getAxes
public IAxis[] getAxes()
Description copied from interface:IAxisSetGets the array of all axes.
-
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
public void zoomIn()
Description copied from interface:IAxisSetZooms in all axes.
-
zoomOut
public void zoomOut()
Description copied from interface:IAxisSetZooms 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.
-
-