Class MasterSlaveTouchModifierBase
Provides a base class for Linked 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 MasterSlaveTouchModifierBase extends TouchModifierBase
Constructors
MasterSlaveTouchModifierBase()
Declaration
public MasterSlaveTouchModifierBase()
Methods
clearAll()
When overridden in a derived class, this method should clear all markers and tooltips from the SciChartSurface#getModifierSurface().
Declaration
protected abstract void clearAll()
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)
Called when isEnabled value has changed
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
updateCurrentPoint(PointF currentPoint, ModifierTouchEventArgs args)
Updates the passed in current point when one of the following methods was called: MasterSlaveTouchModifierBase#onTouchDown(ModifierTouchEventArgs), MasterSlaveTouchModifierBase#onTouchMove(ModifierTouchEventArgs), MasterSlaveTouchModifierBase#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 |