public class BarLineChartTouchListener extends ChartTouchListener<BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends IBarLineScatterCandleBubbleDataSet<? extends Entry>>>>
ChartTouchListener.ChartGestureDRAG, mChart, mGestureDetector, mLastGesture, mLastHighlighted, mTouchMode, NONE, PINCH_ZOOM, POST_ZOOM, ROTATE, X_ZOOM, Y_ZOOM| Constructor and Description |
|---|
BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends IBarLineScatterCandleBubbleDataSet<? extends Entry>>> chart,
android.graphics.Matrix touchMatrix,
float dragTriggerDistance)
Constructor with initialization parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeScroll() |
android.graphics.Matrix |
getMatrix()
returns the matrix object the listener holds
|
MPPointF |
getTrans(float x,
float y)
Returns a recyclable MPPointF instance.
|
boolean |
onDoubleTap(android.view.MotionEvent e) |
boolean |
onFling(android.view.MotionEvent e1,
android.view.MotionEvent e2,
float velocityX,
float velocityY) |
void |
onLongPress(android.view.MotionEvent e) |
boolean |
onSingleTapUp(android.view.MotionEvent e) |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
setDragTriggerDist(float dragTriggerDistance)
Sets the minimum distance that will be interpreted as a "drag" by the chart in dp.
|
void |
stopDeceleration() |
distance, endAction, getLastGesture, getTouchMode, performHighlight, setLastHighlighted, startActionpublic BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends IBarLineScatterCandleBubbleDataSet<? extends Entry>>> chart, android.graphics.Matrix touchMatrix, float dragTriggerDistance)
chart - instance of the charttouchMatrix - the touch-matrix of the chartdragTriggerDistance - the minimum movement distance that will be interpreted as a "drag" gesture in dp (3dp equals
to about 9 pixels on a 5.5" FHD screen)public boolean onTouch(android.view.View v,
android.view.MotionEvent event)
public MPPointF getTrans(float x, float y)
x - y - public android.graphics.Matrix getMatrix()
public void setDragTriggerDist(float dragTriggerDistance)
dragTriggerDistance - public boolean onDoubleTap(android.view.MotionEvent e)
onDoubleTap in interface android.view.GestureDetector.OnDoubleTapListeneronDoubleTap in class android.view.GestureDetector.SimpleOnGestureListenerpublic void onLongPress(android.view.MotionEvent e)
onLongPress in interface android.view.GestureDetector.OnGestureListeneronLongPress in class android.view.GestureDetector.SimpleOnGestureListenerpublic boolean onSingleTapUp(android.view.MotionEvent e)
onSingleTapUp in interface android.view.GestureDetector.OnGestureListeneronSingleTapUp in class android.view.GestureDetector.SimpleOnGestureListenerpublic boolean onFling(android.view.MotionEvent e1,
android.view.MotionEvent e2,
float velocityX,
float velocityY)
onFling in interface android.view.GestureDetector.OnGestureListeneronFling in class android.view.GestureDetector.SimpleOnGestureListenerpublic void stopDeceleration()
public void computeScroll()