public abstract class MasterSlaveTouchModifierBase3D extends TouchModifierBase3D
Constructor and Description |
---|
MasterSlaveTouchModifierBase3D() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
clearAll()
When overridden in a derived class, this method should clear all markers and tooltips from the
SciChartSurface3D.getModifierSurface() . |
int |
getExecuteOnPointerCount()
Sets pointer count to use with this modifier (e.g.
|
protected abstract void |
handleMasterTouchDownEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_DOWN |
protected abstract void |
handleMasterTouchMoveEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_MOVE |
protected abstract void |
handleMasterTouchUpEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_UP |
protected abstract void |
handleSlaveTouchDownEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Slave
ChartModifierBase MotionEvent.ACTION_DOWN |
protected abstract void |
handleSlaveTouchMoveEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Slave
ChartModifierBase MotionEvent.ACTION_MOVE |
protected abstract void |
handleSlaveTouchUpEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Slave
ChartModifierBase MotionEvent.ACTION_UP |
protected boolean |
isEnabledAt(android.graphics.PointF point,
boolean isMaster)
When overridden in derived classes, indicates whether touch point is valid for current modifier.
|
protected void |
onIsEnabledChanged(boolean isEnabled) |
protected boolean |
onTouchDown(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Called when
MotionEvent.ACTION_DOWN event occurs |
protected boolean |
onTouchMove(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Called when
MotionEvent.ACTION_MOVE event occurs |
protected boolean |
onTouchUp(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Called when
MotionEvent.ACTION_UP event occurs |
void |
setExecuteOnPointerCount(int executeOnPointerCount)
Sets pointer count to use with this modifier (e.g.
|
protected void |
updateCurrentPoint(android.graphics.PointF currentPoint,
com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Updates the passed in current point when one of the following methods was called:
onTouchDown(ModifierTouchEventArgs) ,
onTouchMove(ModifierTouchEventArgs) ,
onTouchUp(ModifierTouchEventArgs) . |
onTouch, onTouchCancel
attachTo, detach, getCamera, getContext, getModifierSurface, getParentSurface, getPointRelativeTo, getXAxis, getYAxis, getZAxis, onChartRendered, onXAxisChanged, onYAxisChanged, onZAxisChanged
applyThemeProvider, checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, onGenericMotion, onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onSelectedSeriesCollectionChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsGroupTag, getIsEnabled, setIsEnabled
protected void onIsEnabledChanged(boolean isEnabled)
onIsEnabledChanged
in class com.scichart.charting.modifiers.ChartModifierCore
public final void setExecuteOnPointerCount(int executeOnPointerCount)
executeOnPointerCount
- The new pointer count to usepublic final int getExecuteOnPointerCount()
protected boolean onTouchDown(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
MotionEvent.ACTION_DOWN
event occursonTouchDown
in class TouchModifierBase3D
args
- The touch event args for this eventprotected boolean onTouchUp(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
MotionEvent.ACTION_UP
event occursonTouchUp
in class TouchModifierBase3D
args
- The touch event args for this eventprotected boolean onTouchMove(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
MotionEvent.ACTION_MOVE
event occursonTouchMove
in class TouchModifierBase3D
args
- The touch event args for this eventprotected boolean isEnabledAt(android.graphics.PointF point, boolean isMaster)
point
- The touch point to check.isMaster
- Indicates whether this check is performed on the master SciChartSurface
instance.protected abstract void clearAll()
SciChartSurface3D.getModifierSurface()
.protected void updateCurrentPoint(android.graphics.PointF currentPoint, com.scichart.core.utility.touch.ModifierTouchEventArgs args)
onTouchDown(ModifierTouchEventArgs)
,
onTouchMove(ModifierTouchEventArgs)
,
onTouchUp(ModifierTouchEventArgs)
.currentPoint
- The point which will be updated.args
- The ModifierTouchEventArgs
which is used to update the passed in currentPoint.protected abstract void handleSlaveTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
point
- The current touch pointprotected abstract void handleMasterTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
point
- The current touch pointprotected abstract void handleSlaveTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
point
- The current touch pointprotected abstract void handleMasterTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
point
- The current touch pointprotected abstract void handleSlaveTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
point
- The current touch pointprotected abstract void handleMasterTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
point
- The current touch point