Class ZoomExtentsModifier3D
The ZoomExtentsModifier3D provides the behaviour of zoom camera to fit on mouse double click on a 3D chart
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class ZoomExtentsModifier3D extends GestureModifierBase3D
Constructors
ZoomExtentsModifier3D()
Creates a new instance of the ZoomExtentsModifier3D class.
Declaration
public ZoomExtentsModifier3D()
Methods
getAnimationDuration()
Gets the animation duration in milliseconds for any zoom operations
Declaration
public final long getAnimationDuration()
Returns
| Type | Description |
|---|---|
| long | The current animation duration |
getAutoFitRadius()
When true, attempts to auto-fit the camera radius to fit the scene. When false, uses the #getResetPosition() and #getResetTarget() instead
Declaration
public final boolean getAutoFitRadius()
Returns
| Type | Description |
|---|---|
| boolean | The current autoFitRadius value |
getExecuteOn()
Gets when the ZoomExtentsModifier3D should be executed. e.g. ExecuteOn#DoubleTap will cause a zoom to extents on double tap on the parent surface instance.
Declaration
public final ExecuteOn getExecuteOn()
Returns
| Type | Description |
|---|---|
| ExecuteOn | When the ZoomExtentsModifier3D should be executed. |
getResetPosition()
Gets the reset position. This is the Vector3 in 3D world coordinates where the ISciChartSurface3D#getCamera() Position is moved to
Declaration
public final Vector3 getResetPosition()
Returns
| Type | Description |
|---|---|
| Vector3 | The reset position |
getResetTarget()
Gets the reset target. This is the Vector3 in 3D world coordinates where the ISciChartSurface3D#getCamera() Target is moved to on double-tap
Declaration
public final Vector3 getResetTarget()
Returns
| Type | Description |
|---|---|
| Vector3 | The reset target |
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
performZoomExtents()
Performs the zoom extents function. Called when the user double taps. May be overridden in derived classes to customize what the zoom actually does.
Declaration
protected void performZoomExtents()
setAnimationDuration(long animationDuration)
Sets the animation duration in milliseconds for any zoom operations
Declaration
public final void setAnimationDuration(long animationDuration)
Parameters
| Type | Name | Description |
|---|---|---|
| long | animationDuration | The new animation duration |
setAutoFitRadius(boolean autoFitRadius)
When true, attempts to auto-fit the camera radius to fit the scene. When false, uses the #getResetPosition() and #getResetTarget() instead
Declaration
public final void setAutoFitRadius(boolean autoFitRadius)
Parameters
| Type | Name | Description |
|---|---|---|
| boolean | autoFitRadius | The new autoFitRadius value |
setExecuteOn(ExecuteOn executeOn)
Sets when the ZoomExtentsModifier3D should be executed. e.g. ExecuteOn#DoubleTap will cause a zoom to extents on double tap on the parent surface instance.
Declaration
public final void setExecuteOn(ExecuteOn executeOn)
Parameters
| Type | Name | Description |
|---|---|---|
| ExecuteOn | executeOn | When the ZoomExtentsModifier3D should be executed. |
setResetPosition(Vector3 resetPosition)
Sets the reset position. This is the Vector3 in 3D world coordinates where the ISciChartSurface3D#getCamera() Position is moved to
Declaration
public final void setResetPosition(Vector3 resetPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | resetPosition | The new reset position |
setResetTarget(Vector3 resetTarget)
Sets the reset target. This is the Vector3 in 3D world coordinates where the ISciChartSurface3D#getCamera() Target is moved to
Declaration
public final void setResetTarget(Vector3 resetTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | resetTarget | The new reset target |