T
- The modifier to which this behavior will be attached.public abstract class DrawableBehavior<T extends IChartModifierCore> extends ModifierBehavior<T>
IChartModifier
implementors.lastUpdatePoint, modifier, modifierType, parentSurface, services
Modifier | Constructor and Description |
---|---|
protected |
DrawableBehavior(java.lang.Class<T> modifierType)
Creates a new instance of
DrawableBehavior class |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
clear()
Clears
ModifierBehavior.lastUpdatePoint x and y to NaN values. |
void |
detach() |
void |
onBeginUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch down event. |
protected abstract void |
onDrawOverlay(android.graphics.Canvas canvas)
Called when the Overlay's onDraw(Canvas) method is called.
|
void |
onEndUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch up event. |
void |
onUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch move event. |
applyThemeProvider, attachTo, getIsEnabled, isAttached, isLastPointValid, onIsEnabledChanged, resetLastUpdatePoint, setIsEnabled
protected DrawableBehavior(java.lang.Class<T> modifierType)
DrawableBehavior
classmodifierType
- The type of the associated IChartModifier
protected abstract void onDrawOverlay(android.graphics.Canvas canvas)
canvas
- The Canvas
instance to draw on.public void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class ModifierBehavior<T extends IChartModifierCore>
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class ModifierBehavior<T extends IChartModifierCore>
public void onBeginUpdate(android.graphics.PointF point, boolean isMaster)
IChartModifier
instance handle touch down event.onBeginUpdate
in class ModifierBehavior<T extends IChartModifierCore>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.public void onUpdate(android.graphics.PointF point, boolean isMaster)
IChartModifier
instance handle touch move event.onUpdate
in class ModifierBehavior<T extends IChartModifierCore>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.public void onEndUpdate(android.graphics.PointF point, boolean isMaster)
IChartModifier
instance handle touch up event.onEndUpdate
in class ModifierBehavior<T extends IChartModifierCore>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.public void clear()
ModifierBehavior.lastUpdatePoint
x and y to NaN values.clear
in class ModifierBehavior<T extends IChartModifierCore>