Public 成员函数 | |
| Pan (AbstractChart chart) | |
| void | apply (float oldX, float oldY, float newX, float newY) |
| synchronized void | addPanListener (PanListener listener) |
| synchronized void | removePanListener (PanListener listener) |
Public 成员函数 继承自 com.ab.view.chart.AbstractTool | |
| AbstractTool (AbstractChart chart) | |
| double[] | getRange (int scale) |
| void | checkRange (double[] range, int scale) |
Private 成员函数 | |
| double | getAxisRatio (double[] range) |
| synchronized void | notifyPanListeners () |
Private 属性 | |
| List< PanListener > | mPanListeners = new ArrayList<PanListener>() |
| 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 pan tool.
|
inline |
Builds and instance of the pan tool.
| chart | the XY chart |
|
inline |
Adds a new pan listener.
| listener | pan listener |
|
inline |
Apply the tool.
| oldX | the previous location on X axis |
| oldY | the previous location on Y axis |
| newX | the current location on X axis |
| newY | the current location on the Y axis |
|
inlineprivate |
Return the X / Y axis range ratio.
| range | the axis range |
|
inlineprivate |
Notify the pan listeners about a pan.
|
inline |
Removes a pan listener.
| listener | pan listener |
|
private |
Pan limits reached on the X axis.
|
private |
Pan limits reached on the X axis.
|
private |
The pan listeners.
1.8.8