public class BarLineChartTouchListener extends ChartTouchListener<BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends BarLineScatterCandleBubbleDataSet<? 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 BarLineScatterCandleBubbleDataSet<? extends Entry>>> chart,
android.graphics.Matrix touchMatrix) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeScroll() |
android.graphics.Matrix |
getMatrix()
returns the matrix object the listener holds
|
android.graphics.PointF |
getTrans(float x,
float y)
returns the correct translation depending on the provided x and y touch
points
|
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 |
stopDeceleration() |
distance, endAction, getLastGesture, getTouchMode, performHighlight, setLastHighlighted, startActionpublic BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends BarLineScatterCandleBubbleDataSet<? extends Entry>>> chart, android.graphics.Matrix touchMatrix)
public boolean onTouch(android.view.View v,
android.view.MotionEvent event)
public android.graphics.PointF getTrans(float x,
float y)
x - y - public android.graphics.Matrix getMatrix()
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()