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 canceled.
|
protected DiagramView |
getDiagramView()
Gets a reference to the DiagramView control
this interaction is associated with.
|
void |
pointerDown(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
Invoked when the mouse button is pressed.
|
void |
pointerMove(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
Invoked when users drag the mouse.
|
void |
pointerOver(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
Invoked when the mouse moves.
|
void |
pointerUp(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
Invoked when the mouse button is released.
|
protected Interaction(DiagramView diagramView)
Interaction
class.diagramView
- A DiagramView
where the interaction takes place.public void pointerDown(java.awt.Point mousePosition, java.awt.event.MouseEvent e)
mousePosition
- A Point instance that specifies the mouse pointer position.public void pointerMove(java.awt.Point mousePosition, java.awt.event.MouseEvent e)
mousePosition
- A Point instance that specifies the mouse pointer position.public void pointerUp(java.awt.Point mousePosition, java.awt.event.MouseEvent e)
mousePosition
- A Point instance that specifies the mouse pointer position.public void pointerOver(java.awt.Point mousePosition, java.awt.event.MouseEvent e)
mousePosition
- A Point instance that specifies the mouse pointer position.public void cancelDrag()
protected DiagramView getDiagramView()