Public Member Functions | |
AxisSet (Chart chart) | |
Constructor. | |
int | createXAxis () |
Creates the X axis. | |
int | createYAxis () |
Creates the Y axis. | |
IAxis | getXAxis (int id) |
Gets the X axis for the given id. | |
IAxis | getYAxis (int id) |
Gets the Y axis for given index. | |
IAxis[] | getXAxes () |
Gets the array of X axes. | |
IAxis[] | getYAxes () |
Gets the array of Y axes. | |
IAxis[] | getAxes () |
Gets the array of all axes. | |
int[] | getXAxisIds () |
Gets the array of X axis ids. | |
int[] | getYAxisIds () |
Gets the array of Y axis ids. | |
void | deleteXAxis (int id) |
Deletes the X Axis for given axis id. | |
void | deleteYAxis (int id) |
Deletes the Y Axis for given id. | |
void | adjustRange () |
Adjusts the axis range of all axes. | |
void | zoomIn () |
Zooms in all axes. | |
void | zoomOut () |
Zooms out all axes. | |
void | updateLayoutData () |
Updates the layout data. | |
void | refresh () |
Refreshes the cache. | |
void | dispose () |
Disposes the resources. | |
Private Member Functions | |
HashMap< Integer, Axis > | getAxisMap (Direction direction) |
Gets the axis map for given direction. | |
int | createAxis (Direction direction) |
Creates the axis for given direction. | |
int | getUniqueId (Direction direction) |
Gets a unique axis id. | |
IAxis | getAxis (int id, Direction direction) |
Gets the axis with axis id for given direction. | |
int[] | getAxisIds (Direction direction) |
Gets the axis ids for given direction. | |
void | deleteAxis (int id, Direction direction) |
Deletes the axis with the axis id for given direction. | |
Private Attributes | |
HashMap< Integer, Axis > | xAxisMap |
the set of X axes | |
HashMap< Integer, Axis > | yAxisMap |
the set of Y axes | |
Chart | chart |
the chart |
An axis container.
By default, axis set has X Axis and Y axis with axis id 0.
Definition at line 26 of file AxisSet.java.
org.swtchart.internal.axis.AxisSet.AxisSet | ( | Chart | chart | ) |
Constructor.
chart | the chart |
Definition at line 43 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.xAxisMap, and org.swtchart.internal.axis.AxisSet.yAxisMap.
void org.swtchart.internal.axis.AxisSet.adjustRange | ( | ) |
Adjusts the axis range of all axes.
Implements org.swtchart.IAxisSet.
Definition at line 259 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.chart, org.swtchart.internal.axis.AxisSet.getAxes(), and org.swtchart.Chart.updateLayout().
int org.swtchart.internal.axis.AxisSet.createAxis | ( | Direction | direction | ) | [private] |
Creates the axis for given direction.
direction | the direction of axis |
Definition at line 91 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.chart, org.swtchart.internal.series.SeriesSet.compressAllSeries(), org.swtchart.internal.axis.AxisSet.getAxisMap(), org.swtchart.Chart.getSeriesSet(), org.swtchart.internal.axis.AxisSet.getUniqueId(), and org.swtchart.Chart.updateLayout().
Referenced by org.swtchart.internal.axis.AxisSet.createXAxis(), and org.swtchart.internal.axis.AxisSet.createYAxis().
int org.swtchart.internal.axis.AxisSet.createXAxis | ( | ) |
Creates the X axis.
This method is used for multiple axes chart.
Implements org.swtchart.IAxisSet.
Definition at line 73 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.createAxis().
int org.swtchart.internal.axis.AxisSet.createYAxis | ( | ) |
Creates the Y axis.
This method is used for multiple axes chart.
Implements org.swtchart.IAxisSet.
Definition at line 80 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.createAxis().
void org.swtchart.internal.axis.AxisSet.deleteAxis | ( | int | id, | |
Direction | direction | |||
) | [private] |
Deletes the axis with the axis id for given direction.
id | the axis id | |
direction | the direction |
Definition at line 230 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.chart, org.swtchart.internal.axis.AxisSet.dispose(), org.swtchart.internal.axis.AxisSet.getAxis(), org.swtchart.internal.axis.AxisSet.getAxisMap(), org.swtchart.ISeriesSet.getSeries(), org.swtchart.Chart.getSeriesSet(), and org.swtchart.Chart.updateLayout().
Referenced by org.swtchart.internal.axis.AxisSet.deleteXAxis(), and org.swtchart.internal.axis.AxisSet.deleteYAxis().
void org.swtchart.internal.axis.AxisSet.deleteXAxis | ( | int | id | ) |
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.
id | the axis id |
IllegalArgumentException | if the given axis id is '0', or if there is no axis for the given id. |
Implements org.swtchart.IAxisSet.
Definition at line 211 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.deleteAxis().
void org.swtchart.internal.axis.AxisSet.deleteYAxis | ( | int | id | ) |
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.
id | the axis id |
IllegalArgumentException | if the given axis id is '0', or if there is no axis for the given id. |
Implements org.swtchart.IAxisSet.
Definition at line 218 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.deleteAxis().
void org.swtchart.internal.axis.AxisSet.dispose | ( | ) |
Disposes the resources.
Definition at line 305 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxes().
Referenced by org.swtchart.internal.axis.AxisSet.deleteAxis(), and org.swtchart.Chart.dispose().
IAxis [] org.swtchart.internal.axis.AxisSet.getAxes | ( | ) |
Gets the array of all axes.
Implements org.swtchart.IAxisSet.
Definition at line 167 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.xAxisMap, and org.swtchart.internal.axis.AxisSet.yAxisMap.
Referenced by org.swtchart.internal.axis.AxisSet.adjustRange(), org.swtchart.internal.axis.AxisSet.dispose(), org.swtchart.internal.axis.AxisSet.refresh(), org.swtchart.internal.axis.AxisSet.updateLayoutData(), org.swtchart.internal.axis.AxisSet.zoomIn(), and org.swtchart.internal.axis.AxisSet.zoomOut().
IAxis org.swtchart.internal.axis.AxisSet.getAxis | ( | int | id, | |
Direction | direction | |||
) | [private] |
Gets the axis with axis id for given direction.
id | the axis id | |
direction | the direction |
Definition at line 144 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxisMap().
Referenced by org.swtchart.internal.axis.AxisSet.deleteAxis(), org.swtchart.internal.axis.AxisSet.getXAxis(), and org.swtchart.internal.axis.AxisSet.getYAxis().
int [] org.swtchart.internal.axis.AxisSet.getAxisIds | ( | Direction | direction | ) | [private] |
Gets the axis ids for given direction.
direction | the direction |
Definition at line 195 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxisMap().
Referenced by org.swtchart.internal.axis.AxisSet.getXAxisIds(), and org.swtchart.internal.axis.AxisSet.getYAxisIds().
HashMap<Integer, Axis> org.swtchart.internal.axis.AxisSet.getAxisMap | ( | Direction | direction | ) | [private] |
Gets the axis map for given direction.
direction | the direction |
Definition at line 63 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.xAxisMap, and org.swtchart.internal.axis.AxisSet.yAxisMap.
Referenced by org.swtchart.internal.axis.AxisSet.createAxis(), org.swtchart.internal.axis.AxisSet.deleteAxis(), org.swtchart.internal.axis.AxisSet.getAxis(), org.swtchart.internal.axis.AxisSet.getAxisIds(), and org.swtchart.internal.axis.AxisSet.getUniqueId().
int org.swtchart.internal.axis.AxisSet.getUniqueId | ( | Direction | direction | ) | [private] |
Gets a unique axis id.
direction | the axis direction |
Definition at line 111 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxisMap().
Referenced by org.swtchart.internal.axis.AxisSet.createAxis().
IAxis [] org.swtchart.internal.axis.AxisSet.getXAxes | ( | ) |
Gets the array of X axes.
Implements org.swtchart.IAxisSet.
Definition at line 151 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.xAxisMap.
IAxis org.swtchart.internal.axis.AxisSet.getXAxis | ( | int | id | ) |
Gets the X axis for the given id.
id | the axis id |
Implements org.swtchart.IAxisSet.
Definition at line 124 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxis().
int [] org.swtchart.internal.axis.AxisSet.getXAxisIds | ( | ) |
Gets the array of X axis ids.
Implements org.swtchart.IAxisSet.
Definition at line 177 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxisIds().
IAxis [] org.swtchart.internal.axis.AxisSet.getYAxes | ( | ) |
Gets the array of Y axes.
Implements org.swtchart.IAxisSet.
Definition at line 159 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.yAxisMap.
IAxis org.swtchart.internal.axis.AxisSet.getYAxis | ( | int | id | ) |
Gets the Y axis for given index.
id | the axis id |
Implements org.swtchart.IAxisSet.
Definition at line 131 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxis().
int [] org.swtchart.internal.axis.AxisSet.getYAxisIds | ( | ) |
Gets the array of Y axis ids.
Implements org.swtchart.IAxisSet.
Definition at line 184 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxisIds().
void org.swtchart.internal.axis.AxisSet.refresh | ( | ) |
Refreshes the cache.
Definition at line 296 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxes().
Referenced by org.swtchart.Chart.updateLayout().
void org.swtchart.internal.axis.AxisSet.updateLayoutData | ( | ) |
Updates the layout data.
Definition at line 287 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxes().
Referenced by org.swtchart.Chart.updateLayout().
void org.swtchart.internal.axis.AxisSet.zoomIn | ( | ) |
Zooms in all axes.
Implements org.swtchart.IAxisSet.
Definition at line 269 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxes().
void org.swtchart.internal.axis.AxisSet.zoomOut | ( | ) |
Zooms out all axes.
Implements org.swtchart.IAxisSet.
Definition at line 278 of file AxisSet.java.
References org.swtchart.internal.axis.AxisSet.getAxes().
the chart
Definition at line 35 of file AxisSet.java.
Referenced by org.swtchart.internal.axis.AxisSet.adjustRange(), org.swtchart.internal.axis.AxisSet.createAxis(), and org.swtchart.internal.axis.AxisSet.deleteAxis().
HashMap<Integer, Axis> org.swtchart.internal.axis.AxisSet.xAxisMap [private] |
the set of X axes
Definition at line 29 of file AxisSet.java.
Referenced by org.swtchart.internal.axis.AxisSet.AxisSet(), org.swtchart.internal.axis.AxisSet.getAxes(), org.swtchart.internal.axis.AxisSet.getAxisMap(), and org.swtchart.internal.axis.AxisSet.getXAxes().
HashMap<Integer, Axis> org.swtchart.internal.axis.AxisSet.yAxisMap [private] |
the set of Y axes
Definition at line 32 of file AxisSet.java.
Referenced by org.swtchart.internal.axis.AxisSet.AxisSet(), org.swtchart.internal.axis.AxisSet.getAxes(), org.swtchart.internal.axis.AxisSet.getAxisMap(), and org.swtchart.internal.axis.AxisSet.getYAxes().