public class Interaction
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Interaction(DiagramView diagramView)
Initializes a new instance of the
Interaction class. |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDrag()
Invoked when the operation should be cancelled.
|
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 |
pointerOver(android.graphics.Point pointerPosition,
android.view.MotionEvent e)
Invoked in response to system pointer over events.
|
void |
pointerUp(android.graphics.Point pointerPosition,
android.view.MotionEvent e)
Invoked in response to system pointer up events.
|
protected boolean |
supportsAutoScroll() |
protected Interaction(DiagramView diagramView)
Interaction class.diagramView - A DiagramView where the interaction takes place.public void pointerDown(android.graphics.Point pointerPosition,
android.view.MotionEvent e)
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)
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)
pointerPosition - A Point instance that specifies the pointer position.e - The corresponding system MotionEvent object.public void pointerOver(android.graphics.Point pointerPosition,
android.view.MotionEvent e)
pointerPosition - A Point instance that specifies the pointer position.e - The corresponding system MotionEvent object.protected boolean supportsAutoScroll()
public void cancelDrag()
protected DiagramView getDiagramView()