public class PieChartTouchHandler extends ChartTouchHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
FLING_VELOCITY_DOWNSCALE
The initial fling velocity is divided by this amount.
|
protected PieChartView |
pieChart
Reference to PieChartView to use some methods specific for that kind of chart.
|
protected ScrollerCompat |
scroller
PieChartTouchHandler uses its own instance of Scroller.
|
chart, chartScroller, chartZoomer, computator, containerScrollType, gestureDetector, isScrollEnabled, isValueSelectionEnabled, isValueTouchEnabled, isZoomEnabled, oldSelectedValue, renderer, scaleGestureDetector, selectedValue, selectionModeOldValue, viewParent| Constructor and Description |
|---|
PieChartTouchHandler(android.content.Context context,
PieChartView chart) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
computeScroll()
Computes scroll and zoom using
ChartScroller and ChartZoomer. |
boolean |
handleTouchEvent(android.view.MotionEvent event)
Handle chart touch event(gestures, clicks).
|
boolean |
isRotationEnabled() |
void |
setRotationEnabled(boolean isRotationEnabled) |
getZoomType, handleTouchEvent, isScrollEnabled, isValueSelectionEnabled, isValueTouchEnabled, isZoomEnabled, resetTouchHandler, setScrollEnabled, setValueSelectionEnabled, setValueTouchEnabled, setZoomEnabled, setZoomTypepublic static final int FLING_VELOCITY_DOWNSCALE
protected ScrollerCompat scroller
protected PieChartView pieChart
public PieChartTouchHandler(android.content.Context context,
PieChartView chart)
public boolean computeScroll()
ChartTouchHandlerChartScroller and ChartZoomer. This method returns true if
scroll/zoom was computed and chart needs to be invalidated.computeScroll in class ChartTouchHandlerpublic boolean handleTouchEvent(android.view.MotionEvent event)
ChartTouchHandlerhandleTouchEvent in class ChartTouchHandlerpublic boolean isRotationEnabled()
public void setRotationEnabled(boolean isRotationEnabled)