com.mindfusion.diagramming
Class BehaviorBase
java.lang.Object
com.mindfusion.diagramming.Interaction
com.mindfusion.diagramming.BehaviorBase
- Direct Known Subclasses:
- DrawLinksBehavior, DrawNodesBehavior, LinkNodesBehavior, ModifyBehavior, PanBehavior
public abstract class BehaviorBase
- extends Interaction
An abstract base class for types that define how the control
reacts to users' actions with a mouse or other pointing devices.
Method Summary |
protected DiagramLink |
createLink()
|
protected Diagram |
getDiagram()
|
protected DiagramView |
getDiagramView()
Gets a reference to the DiagramView control
this interaction is associated with. |
protected void |
mouseDragged(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
|
protected void |
mouseMoved(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
Invoked when the mouse moves. |
protected void |
mousePressed(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
Invoked when the mouse button is pressed. |
protected void |
mouseReleased(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
Invoked when the mouse button is released. |
protected CursorHint |
setModfCursor(java.awt.geom.Point2D point,
int handle,
boolean active,
boolean autoh)
|
protected abstract CursorHint |
setMouseCursor(java.awt.geom.Point2D point,
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentCursor
protected CursorHint currentCursor
diagramView
protected DiagramView diagramView
BehaviorBase
protected BehaviorBase(DiagramView flowChart)
startDraw
protected abstract InteractionState startDraw(java.awt.geom.Point2D point,
java.awt.event.MouseEvent e)
setMouseCursor
protected abstract CursorHint setMouseCursor(java.awt.geom.Point2D point,
java.lang.Boolean startInteraction)
startDrawCommon
protected InteractionState startDrawCommon(java.awt.geom.Point2D point,
java.awt.event.MouseEvent e)
getDiagram
protected Diagram getDiagram()
getDiagramView
protected DiagramView getDiagramView()
- Description copied from class:
Interaction
- Gets a reference to the DiagramView control
this interaction is associated with.
- Overrides:
getDiagramView
in class Interaction
createLink
protected DiagramLink createLink()
setModfCursor
protected CursorHint setModfCursor(java.awt.geom.Point2D point,
int handle,
boolean active,
boolean autoh)
mousePressed
protected void mousePressed(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
- Invoked when the mouse button is pressed.
- Overrides:
mousePressed
in class Interaction
- Parameters:
mousePosition
- A Point instance that specifies the mouse pointer position.
mouseMoved
protected void mouseMoved(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
- Invoked when the mouse moves.
- Overrides:
mouseMoved
in class Interaction
- Parameters:
mousePosition
- A Point instance that specifies the mouse pointer position.
mouseDragged
protected void mouseDragged(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
- Overrides:
mouseDragged
in class Interaction
mouseReleased
protected void mouseReleased(java.awt.Point mousePosition,
java.awt.event.MouseEvent e)
- Invoked when the mouse button is released.
- Overrides:
mouseReleased
in class Interaction
- Parameters:
mousePosition
- A Point instance that specifies the mouse pointer position.