public class ZoomExtentsModifier extends GestureModifierBase
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_ANIMATION_DURATION |
services
Constructor and Description |
---|
ZoomExtentsModifier()
Creates a new instance of the
ZoomExtentsModifier class. |
Modifier and Type | Method and Description |
---|---|
Direction2D |
getDirection()
Gets the
Direction2D mode of the ZoomExtentsModifier . |
ExecuteOn |
getExecuteOn()
Gets when the
ZoomExtentsModifier should be executed. |
boolean |
getIsAnimated()
Gets whether zoom operations should be animated.
|
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 |
onSingleTapConfirmed(android.view.MotionEvent e) |
protected void |
performZoom()
Performs the zoom function.
|
void |
setDirection(Direction2D direction)
Sets the
Direction2D mode of the ZoomExtentsModifier . |
void |
setExecuteOn(ExecuteOn executeOn)
Sets when the
ZoomExtentsModifier should be executed. |
void |
setIsAnimated(boolean isAnimated)
Sets whether zoom operations should be animated.
|
attachTo, detach, getOriginalTouchEvent, onCancel, onDoubleTapEvent, onDown, onScroll, onShowPress, onSingleTapUp, onTouch, onUp
getContext, getMasterModifier, getModifierSurface, getParentSurface, getPointRelativeTo, getRenderableSeries, getRenderableSeriesArea, getXAxes, getXAxis, getXAxis, getYAxes, getYAxis, getYAxis, isWithinSourceBounds, onAnnotationsCollectionChanged, onAnnotationsDrasticallyChanged, onParentSurfaceResized, onRenderSurfaceRendered, onXAxesCollectionChanged, onXAxesDrasticallyChanged, onYAxesCollectionChanged, onYAxesDrasticallyChanged
applyThemeProvider, checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, onGenericMotion, onIsEnabledChanged, onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onSelectedSeriesCollectionChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsGroupTag, getIsEnabled, setIsEnabled
getName, getReceiveHandledEvents, onGenericMotion
applyThemeProvider
onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onSelectedSeriesCollectionChanged
public static final long DEFAULT_ANIMATION_DURATION
public ZoomExtentsModifier()
ZoomExtentsModifier
class.public final ExecuteOn getExecuteOn()
ZoomExtentsModifier
should be executed.
e.g. ExecuteOn.DoubleTap
will cause a zoom to extents on double tap on the parent SciChartSurface
instance.ZoomExtentsModifier
should be executed.public final void setExecuteOn(ExecuteOn executeOn)
ZoomExtentsModifier
should be executed.
e.g. ExecuteOn.DoubleTap
will cause a zoom to extents on double tap on the parent SciChartSurface
instance.executeOn
- When the ZoomExtentsModifier
should be executed.public final Direction2D getDirection()
Direction2D
mode of the ZoomExtentsModifier
.Direction2D
mode of the ZoomExtentsModifier
.public final void setDirection(Direction2D direction)
Direction2D
mode of the ZoomExtentsModifier
.direction
- The new Direction2D
mode of the ZoomExtentsModifier
.public final boolean getIsAnimated()
public final void setIsAnimated(boolean isAnimated)
isAnimated
- Whether zoom operations should be animated.public boolean onDoubleTap(android.view.MotionEvent e)
onDoubleTap
in interface android.view.GestureDetector.OnDoubleTapListener
onDoubleTap
in class GestureModifierBase
public boolean onSingleTapConfirmed(android.view.MotionEvent e)
onSingleTapConfirmed
in interface android.view.GestureDetector.OnDoubleTapListener
onSingleTapConfirmed
in class GestureModifierBase
public void onLongPress(android.view.MotionEvent e)
onLongPress
in interface android.view.GestureDetector.OnGestureListener
onLongPress
in class GestureModifierBase
public boolean onFling(android.view.MotionEvent e1, android.view.MotionEvent e2, float velocityX, float velocityY)
onFling
in interface android.view.GestureDetector.OnGestureListener
onFling
in class GestureModifierBase
protected void performZoom()