Class ZoomExtentsModifier
Provides zoom to extents, or zoom to specific X and Y VisibleRange on touch gesture.
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class ZoomExtentsModifier extends GestureModifierBase
Constructors
ZoomExtentsModifier()
Creates a new instance of the ZoomExtentsModifier class.
Declaration
public ZoomExtentsModifier()
Fields
DEFAULT_ANIMATION_DURATION
Gets the default animation duration for ZoomExtentsModifier.
Declaration
public static final long DEFAULT_ANIMATION_DURATION
Field Value
| Type | Description |
|---|---|
| long |
Methods
getDirection()
Gets the Direction2D mode of the ZoomExtentsModifier.
Declaration
public final Direction2D getDirection()
Returns
| Type | Description |
|---|---|
| Direction2D | the Direction2D mode of the ZoomExtentsModifier. |
getExecuteOn()
Gets when the ZoomExtentsModifier should be executed. e.g. ExecuteOn#DoubleTap will cause a zoom to extents on double tap on the parent SciChartSurface instance.
Declaration
public final ExecuteOn getExecuteOn()
Returns
| Type | Description |
|---|---|
| ExecuteOn | When the ZoomExtentsModifier should be executed. |
getIsAnimated()
Gets whether zoom operations should be animated.
Declaration
public final boolean getIsAnimated()
Returns
| Type | Description |
|---|---|
| boolean | True is zoom is animated, else - false. |
onDoubleTap(MotionEvent e)
Declaration
public boolean onDoubleTap(MotionEvent e)
Parameters
| Type | Name | Description |
|---|---|---|
| android.view.MotionEvent | e |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
Declaration
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
Parameters
| Type | Name | Description |
|---|---|---|
| android.view.MotionEvent | e1 | |
| android.view.MotionEvent | e2 | |
| float | velocityX | |
| float | velocityY |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
onLongPress(MotionEvent e)
Declaration
public void onLongPress(MotionEvent e)
Parameters
| Type | Name | Description |
|---|---|---|
| android.view.MotionEvent | e |
Overrides
onSingleTapConfirmed(MotionEvent e)
Declaration
public boolean onSingleTapConfirmed(MotionEvent e)
Parameters
| Type | Name | Description |
|---|---|---|
| android.view.MotionEvent | e |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
performZoom()
Performs the zoom function. Called when the user double taps. May be overridden in derived classes to customize what the zoom actually does.
Declaration
protected void performZoom()
setDirection(Direction2D direction)
Sets the Direction2D mode of the ZoomExtentsModifier.
Declaration
public final void setDirection(Direction2D direction)
Parameters
| Type | Name | Description |
|---|---|---|
| Direction2D | direction | The new Direction2D mode of the ZoomExtentsModifier. |
setExecuteOn(ExecuteOn executeOn)
Sets when the ZoomExtentsModifier should be executed. e.g. ExecuteOn#DoubleTap will cause a zoom to extents on double tap on the parent SciChartSurface instance.
Declaration
public final void setExecuteOn(ExecuteOn executeOn)
Parameters
| Type | Name | Description |
|---|---|---|
| ExecuteOn | executeOn | When the ZoomExtentsModifier should be executed. |
setIsAnimated(boolean isAnimated)
Sets whether zoom operations should be animated.
Declaration
public final void setIsAnimated(boolean isAnimated)
Parameters
| Type | Name | Description |
|---|---|---|
| boolean | isAnimated | Whether zoom operations should be animated. |