Public 成员函数 | |
| Zoom (AbstractChart chart, boolean in, float rate) | |
| void | setZoomRate (float rate) |
| void | apply (int zoom_axis) |
| synchronized void | notifyZoomResetListeners () |
| synchronized void | addZoomListener (ZoomListener listener) |
| synchronized void | removeZoomListener (ZoomListener listener) |
Public 成员函数 继承自 com.ab.view.chart.AbstractTool | |
| AbstractTool (AbstractChart chart) | |
| double[] | getRange (int scale) |
| void | checkRange (double[] range, int scale) |
静态 Public 属性 | |
| static final int | ZOOM_AXIS_XY = 0 |
| static final int | ZOOM_AXIS_X = 1 |
| static final int | ZOOM_AXIS_Y = 2 |
Private 成员函数 | |
| synchronized void | notifyZoomListeners (ZoomEvent e) |
Private 属性 | |
| boolean | mZoomIn |
| float | mZoomRate |
| List< ZoomListener > | mZoomListeners = new ArrayList<ZoomListener>() |
| boolean | limitsReachedX = false |
| boolean | limitsReachedY = false |
额外继承的成员函数 | |
Protected 成员函数 继承自 com.ab.view.chart.AbstractTool | |
| void | setXRange (double min, double max, int scale) |
| void | setYRange (double min, double max, int scale) |
Protected 属性 继承自 com.ab.view.chart.AbstractTool | |
| AbstractChart | mChart |
| XYMultipleSeriesRenderer | mRenderer |
The zoom tool.
|
inline |
Builds the zoom tool.
| chart | the chart |
| in | zoom in or out |
| rate | the zoom rate |
|
inline |
Adds a new zoom listener.
| listener | zoom listener |
|
inline |
Apply the zoom.
| zoom_axis | the zoom_axis |
|
inlineprivate |
Notify the zoom listeners about a zoom change.
| e | the zoom event |
|
inline |
Notify the zoom listeners about a zoom reset.
|
inline |
Removes a zoom listener.
| listener | zoom listener |
|
inline |
Sets the zoom rate.
| rate | the new zoom rate |
|
private |
Zoom limits reached on the X axis.
|
private |
Zoom limits reached on the Y axis.
|
private |
A flag to be used to know if this is a zoom in or out.
|
private |
The zoom listeners.
|
private |
The zoom rate.
|
static |
Zoom on X axis independently.
|
static |
Zoom on X axis and Y axis.
|
static |
Zoom on Y axis independently.
1.8.8