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 |
|---|---|
protected DiagramLink |
createLink() |
protected Diagram |
getDiagram() |
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 the user drags 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 CursorHint |
setModfCursor(java.awt.geom.Point2D point,
AdjustmentHandle handle,
boolean active,
boolean autoh) |
protected abstract CursorHint |
setMouseCursor(java.awt.geom.Point2D point,
com.mindfusion.common.ByRef<java.lang.Boolean> startInteraction) |
protected abstract InteractionState |
startDraw(java.awt.geom.Point2D point,
java.awt.event.MouseEvent e) |
protected InteractionState |
startDrawCommon(java.awt.geom.Point2D point,
java.awt.event.MouseEvent e) |
cancelDragprotected DiagramView diagramView
protected CursorHint currentCursor
protected BehaviorBase(DiagramView diagramView)
diagramView - A DiagramView instance.protected abstract InteractionState startDraw(java.awt.geom.Point2D point, java.awt.event.MouseEvent e)
protected abstract CursorHint setMouseCursor(java.awt.geom.Point2D point, com.mindfusion.common.ByRef<java.lang.Boolean> startInteraction)
protected InteractionState startDrawCommon(java.awt.geom.Point2D point, java.awt.event.MouseEvent e)
protected Diagram getDiagram()
protected DiagramView getDiagramView()
InteractiongetDiagramView in class Interactionprotected DiagramLink createLink()
protected CursorHint setModfCursor(java.awt.geom.Point2D point, AdjustmentHandle handle, boolean active, boolean autoh)
public void pointerDown(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
pointerDown in class InteractionmousePosition - A Point instance that specifies the mouse pointer position.public void pointerOver(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
pointerOver in class InteractionmousePosition - A Point instance that specifies the mouse pointer position.public void pointerMove(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
pointerMove in class InteractionmousePosition - A Point instance that specifies the mouse pointer position.public void pointerUp(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
pointerUp in class InteractionmousePosition - A Point instance that specifies the mouse pointer position.