Public 成员函数 | |
| TouchHandler (GraphicalView view, AbstractChart chart) | |
| boolean | handleTouch (MotionEvent event) |
| boolean | handleTouchControl (MotionEvent event) |
| void | addZoomListener (ZoomListener listener) |
| void | removeZoomListener (ZoomListener listener) |
| void | addPanListener (PanListener listener) |
| void | removePanListener (PanListener listener) |
| float | getOldX () |
| float | getOldY () |
Private 属性 | |
| DefaultRenderer | mRenderer |
| float | oldX |
| float | oldY |
| float | oldX2 |
| float | oldY2 |
| RectF | zoomR = new RectF() |
| Pan | mPan |
| Zoom | mPinchZoom |
| GraphicalView | graphicalView |
The main handler of the touch events.
|
inline |
Creates a new graphical view.
| view | the graphical view |
| chart | the chart to be drawn |
|
inline |
|
inline |
|
inline |
Gets the old x.
|
inline |
Gets the old y.
|
inline |
Handles the touch event. 图表的滑动事件
| event | the touch event |
|
inline |
描述:标尺滑动和比例缩放的点击的事件.
| event | the event |
|
inline |
|
inline |
|
private |
The graphical view.
|
private |
The pan tool.
|
private |
The zoom for the pinch gesture.
|
private |
The chart renderer.
|
private |
The old x coordinate.
|
private |
The old x2 coordinate.
|
private |
The old y coordinate.
|
private |
The old y2 coordinate.
|
private |
The zoom buttons rectangle.
1.8.8