public abstract class BehaviorBase extends Interaction
Modifier and Type | Field and Description |
---|---|
protected CursorHint |
currentCursor |
protected DiagramView |
diagramView |
Modifier | Constructor and Description |
---|---|
protected |
BehaviorBase(DiagramView diagramView)
Initializes a new instance of the BehaviorBase class.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelDrag()
Invoked when the operation should be cancelled.
|
protected DiagramLink |
createLink() |
protected Diagram |
getDiagram() |
protected DiagramView |
getDiagramView()
Gets a reference to the DiagramView control
this interaction is associated with.
|
void |
pointerDown(android.graphics.Point pointerPosition,
android.view.MotionEvent e)
Invoked in response to system pointer down events.
|
void |
pointerMove(android.graphics.Point pointerPosition,
android.view.MotionEvent e)
Invoked when the pointer moves.
|
void |
pointerUp(android.graphics.Point pointerPosition,
android.view.MotionEvent e)
Invoked in response to system pointer up events.
|
protected abstract InteractionState |
startDraw(android.graphics.PointF point,
android.view.MotionEvent e) |
protected InteractionState |
startDrawCommon(android.graphics.PointF point,
android.view.MotionEvent e) |
pointerOver, supportsAutoScroll
protected CursorHint currentCursor
protected DiagramView diagramView
protected BehaviorBase(DiagramView diagramView)
diagramView
- A DiagramView instance.protected abstract InteractionState startDraw(android.graphics.PointF point, android.view.MotionEvent e)
protected InteractionState startDrawCommon(android.graphics.PointF point, android.view.MotionEvent e)
protected Diagram getDiagram()
protected DiagramView getDiagramView()
Interaction
getDiagramView
in class Interaction
protected DiagramLink createLink()
public void pointerDown(android.graphics.Point pointerPosition, android.view.MotionEvent e)
pointerDown
in class Interaction
pointerPosition
- A Point instance that specifies the pointer position.e
- The corresponding system MotionEvent object.public void pointerMove(android.graphics.Point pointerPosition, android.view.MotionEvent e)
pointerMove
in class Interaction
pointerPosition
- A Point instance that specifies the pointer position.e
- The corresponding system MotionEvent object.public void pointerUp(android.graphics.Point pointerPosition, android.view.MotionEvent e)
pointerUp
in class Interaction
pointerPosition
- A Point instance that specifies the pointer position.e
- The corresponding system MotionEvent object.public void cancelDrag()
cancelDrag
in class Interaction