| Modifier and Type | Field and Description |
|---|---|
private Chart |
chart
the chart
|
private java.util.HashMap<java.lang.Integer,Axis> |
xAxisMap
the set of X axes
|
private java.util.HashMap<java.lang.Integer,Axis> |
yAxisMap
the set of Y axes
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustRange()
Adjusts the axis range of all axes.
|
private int |
createAxis(IAxis.Direction direction)
Creates the axis for given direction.
|
int |
createXAxis()
Creates the X axis.
|
int |
createYAxis()
Creates the Y axis.
|
private void |
deleteAxis(int id,
IAxis.Direction direction)
Deletes the axis with the axis id for given direction.
|
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.
|
private IAxis |
getAxis(int id,
IAxis.Direction direction)
Gets the axis with axis id for given direction.
|
private int[] |
getAxisIds(IAxis.Direction direction)
Gets the axis ids for given direction.
|
private java.util.HashMap<java.lang.Integer,Axis> |
getAxisMap(IAxis.Direction direction)
Gets the axis map for given direction.
|
private int |
getUniqueId(IAxis.Direction direction)
Gets a unique axis id.
|
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.
|
private java.util.HashMap<java.lang.Integer,Axis> xAxisMap
private java.util.HashMap<java.lang.Integer,Axis> yAxisMap
private Chart chart
public AxisSet(Chart chart)
chart - the chartprivate java.util.HashMap<java.lang.Integer,Axis> getAxisMap(IAxis.Direction direction)
direction - the directionpublic int createXAxis()
IAxisSetcreateXAxis in interface IAxisSetpublic int createYAxis()
IAxisSetcreateYAxis in interface IAxisSetprivate int createAxis(IAxis.Direction direction)
direction - the direction of axisprivate int getUniqueId(IAxis.Direction direction)
direction - the axis directionpublic IAxis getXAxis(int id)
IAxisSetpublic IAxis getYAxis(int id)
IAxisSetprivate IAxis getAxis(int id, IAxis.Direction direction)
id - the axis iddirection - the directionpublic IAxis[] getXAxes()
IAxisSetpublic IAxis[] getYAxes()
IAxisSetpublic IAxis[] getAxes()
IAxisSetpublic int[] getXAxisIds()
IAxisSetgetXAxisIds in interface IAxisSetpublic int[] getYAxisIds()
IAxisSetgetYAxisIds in interface IAxisSetprivate int[] getAxisIds(IAxis.Direction direction)
direction - the directionpublic void deleteXAxis(int id)
IAxisSetdeleteXAxis in interface IAxisSetid - the axis idpublic void deleteYAxis(int id)
IAxisSetdeleteYAxis in interface IAxisSetid - the axis idprivate void deleteAxis(int id,
IAxis.Direction direction)
id - the axis iddirection - the directionpublic void adjustRange()
IAxisSetadjustRange in interface IAxisSetpublic void zoomIn()
IAxisSetpublic void zoomOut()
IAxisSetpublic void updateLayoutData()
public void refresh()
public void dispose()