Public 成员函数 | |
| GraphicalView (Context context, AbstractChart chart) | |
| SeriesSelection | getCurrentSeriesAndPoint () |
| double[] | toRealPoint (int scale) |
| void | setZoomRate (float rate) |
| void | zoomIn () |
| void | zoomOut () |
| void | zoomReset () |
| void | addZoomListener (ZoomListener listener, boolean onButtons, boolean onPinch) |
| synchronized void | removeZoomListener (ZoomListener listener) |
| void | addPanListener (PanListener listener) |
| void | removePanListener (PanListener listener) |
| boolean | onTouchEvent (MotionEvent event) |
| void | repaint () |
| void | repaint (final int left, final int top, final int right, final int bottom) |
| Bitmap | toBitmap () |
Protected 成员函数 | |
| void | onDraw (Canvas canvas) |
| RectF | getZoomRectangle () |
Private 属性 | |
| Context | mContext |
| AbstractChart | mChart |
| DefaultRenderer | mRenderer |
| Rect | mRect = new Rect() |
| Handler | mHandler |
| RectF | mZoomR = new RectF() |
| Bitmap | zoomInImage |
| Bitmap | zoomOutImage |
| Bitmap | fitZoomImage |
| Zoom | mZoomIn |
| Zoom | mZoomOut |
| FitZoom | mFitZoom |
| Paint | mPaint = new Paint() |
| ITouchHandler | mTouchHandler |
| float | oldX |
| float | oldY |
静态 Private 属性 | |
| static final int | ZOOM_BUTTONS_COLOR = Color.argb(175, 150, 150, 150) |
The view that encapsulates the graphical chart.
|
inline |
Creates a new graphical view.
| context | the context |
| chart | the chart to be drawn |
|
inline |
Adds a new pan listener.
| listener | pan listener |
|
inline |
Adds a new zoom listener.
| listener | zoom listener |
| onButtons | the on buttons |
| onPinch | the on pinch |
|
inline |
Returns the current series selection object.
|
inlineprotected |
Gets the zoom rectangle.
|
inlineprotected |
描述:TODO.
| canvas | the canvas |
|
inline |
描述:TODO.
| event | the event |
|
inline |
Removes a pan listener.
| listener | pan listener |
|
inline |
Removes a zoom listener.
| listener | zoom listener |
|
inline |
Schedule a view content repaint.
|
inline |
Schedule a view content repaint, in the specified rectangle area.
| left | the left position of the area to be repainted |
| top | the top position of the area to be repainted |
| right | the right position of the area to be repainted |
| bottom | the bottom position of the area to be repainted |
|
inline |
Sets the zoom rate.
| rate | the zoom rate |
|
inline |
Saves the content of the graphical view to a bitmap.
|
inline |
Transforms the currently selected screen point to a real point.
| scale | the scale |
|
inline |
Do a chart zoom in.
|
inline |
Do a chart zoom out.
|
inline |
Do a chart zoom reset / fit zoom.
|
private |
The fit zoom icon.
|
private |
The chart to be drawn.
|
private |
The m context.
|
private |
The fit zoom tool.
|
private |
The user interface thread handler.
|
private |
The paint to be used when drawing the chart.
|
private |
The view bounds.
|
private |
The chart renderer.
|
private |
The touch handler.
|
private |
The zoom in tool.
|
private |
The zoom out tool.
|
private |
The zoom buttons rectangle.
|
private |
The old x coordinate.
|
private |
The old y coordinate.
|
staticprivate |
The zoom buttons background color.
|
private |
The zoom in icon.
|
private |
The zoom out icon.
1.8.8