com.mindfusion.diagramming
Class Interaction

java.lang.Object
  extended by com.mindfusion.diagramming.Interaction
Direct Known Subclasses:
BehaviorBase, LaneGridInteraction

public class Interaction
extends java.lang.Object

Tracks mouse messages to implement user interaction with the diagram.


Constructor Summary
protected Interaction(DiagramView diagramView)
          Initializes a new instance of the Interaction class.
 
Method Summary
protected  void cancelDrag()
          Invoked when the operation should be cancelled.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interaction

protected Interaction(DiagramView diagramView)
Initializes a new instance of the Interaction class.

Parameters:
diagramView - A DiagramView where the interaction takes place.
Method Detail

mousePressed

protected void mousePressed(java.awt.Point mousePosition,
                            java.awt.event.MouseEvent e)
Invoked when the mouse button is pressed.

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.

Parameters:
mousePosition - A Point instance that specifies the mouse pointer position.

mouseReleased

protected void mouseReleased(java.awt.Point mousePosition,
                             java.awt.event.MouseEvent e)
Invoked when the mouse button is released.

Parameters:
mousePosition - A Point instance that specifies the mouse pointer position.

mouseDragged

protected void mouseDragged(java.awt.Point mousePosition,
                            java.awt.event.MouseEvent e)

cancelDrag

protected void cancelDrag()
Invoked when the operation should be cancelled.


getDiagramView

protected DiagramView getDiagramView()
Gets a reference to the DiagramView control this interaction is associated with.