Class MasterSlaveTouchModifierBase3D
Provides a base class for Linked 3D Chart Modifiers. Classes that inherit this allow touch events and interaction to occur across Chart Panes
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class MasterSlaveTouchModifierBase3D extends TouchModifierBase3D
Constructors
MasterSlaveTouchModifierBase3D()
Declaration
public MasterSlaveTouchModifierBase3D()
Methods
clearAll()
When overridden in a derived class, this method should clear all markers and tooltips from the SciChartSurface3D#getModifierSurface().
Declaration
protected abstract void clearAll()
getExecuteOnPointerCount()
Sets pointer count to use with this modifier (e.g. 1, 2 or more fingers)
Declaration
public final int getExecuteOnPointerCount()
Returns
| Type | Description |
|---|---|
| int | The current pointer to use |
handleMasterTouchDownEvent(PointF point)
When overridden in a derived class, called to handle the Master ChartModifierBase MotionEvent#ACTION_DOWN
Declaration
protected abstract void handleMasterTouchDownEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | The current touch point |
handleMasterTouchMoveEvent(PointF point)
When overridden in a derived class, called to handle the Master ChartModifierBase MotionEvent#ACTION_MOVE
Declaration
protected abstract void handleMasterTouchMoveEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | The current touch point |
handleMasterTouchUpEvent(PointF point)
When overridden in a derived class, called to handle the Master ChartModifierBase MotionEvent#ACTION_UP
Declaration
protected abstract void handleMasterTouchUpEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | The current touch point |
handleSlaveTouchDownEvent(PointF point)
When overridden in a derived class, called to handle the Slave ChartModifierBase MotionEvent#ACTION_DOWN
Declaration
protected abstract void handleSlaveTouchDownEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | The current touch point |
handleSlaveTouchMoveEvent(PointF point)
When overridden in a derived class, called to handle the Slave ChartModifierBase MotionEvent#ACTION_MOVE
Declaration
protected abstract void handleSlaveTouchMoveEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | The current touch point |
handleSlaveTouchUpEvent(PointF point)
When overridden in a derived class, called to handle the Slave ChartModifierBase MotionEvent#ACTION_UP
Declaration
protected abstract void handleSlaveTouchUpEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | The current touch point |
isEnabledAt(PointF point, boolean isMaster)
When overridden in derived classes, indicates whether touch point is valid for current modifier.
Declaration
protected boolean isEnabledAt(PointF point, boolean isMaster)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | The touch point to check. |
| boolean | isMaster | Indicates whether this check is performed on the master SciChartSurface instance. |
Returns
| Type | Description |
|---|---|
| boolean | True if this modifier is enabled at the point, else false. |
onIsEnabledChanged(boolean isEnabled)
Declaration
protected void onIsEnabledChanged(boolean isEnabled)
Parameters
| Type | Name | Description |
|---|---|---|
| boolean | isEnabled |
Overrides
onTouchDown(ModifierTouchEventArgs args)
Called when MotionEvent#ACTION_DOWN event occurs
Declaration
protected boolean onTouchDown(ModifierTouchEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| ModifierTouchEventArgs | args |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
onTouchMove(ModifierTouchEventArgs args)
Called when MotionEvent#ACTION_MOVE event occurs
Declaration
protected boolean onTouchMove(ModifierTouchEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| ModifierTouchEventArgs | args |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
onTouchUp(ModifierTouchEventArgs args)
Called when MotionEvent#ACTION_UP event occurs
Declaration
protected boolean onTouchUp(ModifierTouchEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| ModifierTouchEventArgs | args |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
setExecuteOnPointerCount(int executeOnPointerCount)
Sets pointer count to use with this modifier (e.g. 1, 2 or more fingers)
Declaration
public final void setExecuteOnPointerCount(int executeOnPointerCount)
Parameters
| Type | Name | Description |
|---|---|---|
| int | executeOnPointerCount | The new pointer count to use |
updateCurrentPoint(PointF currentPoint, ModifierTouchEventArgs args)
Updates the passed in current point when one of the following methods was called: MasterSlaveTouchModifierBase3D#onTouchDown(ModifierTouchEventArgs), MasterSlaveTouchModifierBase3D#onTouchMove(ModifierTouchEventArgs), MasterSlaveTouchModifierBase3D#onTouchUp(ModifierTouchEventArgs).
Declaration
protected boolean updateCurrentPoint(PointF currentPoint, ModifierTouchEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | currentPoint | The point which will be updated. |
| ModifierTouchEventArgs | args | The ModifierTouchEventArgs which is used to update the passed in currentPoint. |
Returns
| Type | Description |
|---|---|
| boolean | True if current point should be handled as master touch point, otherwise should be handle as slave touch point |