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()
IAxisSet
createXAxis
in interface IAxisSet
public int createYAxis()
IAxisSet
createYAxis
in interface IAxisSet
private int createAxis(IAxis.Direction direction)
direction
- the direction of axisprivate int getUniqueId(IAxis.Direction direction)
direction
- the axis directionpublic IAxis getXAxis(int id)
IAxisSet
public IAxis getYAxis(int id)
IAxisSet
private IAxis getAxis(int id, IAxis.Direction direction)
id
- the axis iddirection
- the directionpublic IAxis[] getXAxes()
IAxisSet
public IAxis[] getYAxes()
IAxisSet
public IAxis[] getAxes()
IAxisSet
public int[] getXAxisIds()
IAxisSet
getXAxisIds
in interface IAxisSet
public int[] getYAxisIds()
IAxisSet
getYAxisIds
in interface IAxisSet
private int[] getAxisIds(IAxis.Direction direction)
direction
- the directionpublic void deleteXAxis(int id)
IAxisSet
deleteXAxis
in interface IAxisSet
id
- the axis idpublic void deleteYAxis(int id)
IAxisSet
deleteYAxis
in interface IAxisSet
id
- the axis idprivate void deleteAxis(int id, IAxis.Direction direction)
id
- the axis iddirection
- the directionpublic void adjustRange()
IAxisSet
adjustRange
in interface IAxisSet
public void zoomIn()
IAxisSet
public void zoomOut()
IAxisSet
public void updateLayoutData()
public void refresh()
public void dispose()