com.mindfusion.diagramming
Class PanBehavior

java.lang.Object
  extended by com.mindfusion.diagramming.Interaction
      extended by com.mindfusion.diagramming.BehaviorBase
          extended by com.mindfusion.diagramming.PanBehavior

public class PanBehavior
extends BehaviorBase


Field Summary
 
Fields inherited from class com.mindfusion.diagramming.BehaviorBase
currentCursor, diagramView
 
Constructor Summary
protected PanBehavior(DiagramView flowChart)
           
 
Method Summary
protected  void mouseDragged(java.awt.Point mousePosition, java.awt.event.MouseEvent e)
           
protected  void mouseMoved(java.awt.Point mousePosition)
           
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 setMouseCursor(java.awt.geom.Point2D point, java.lang.Boolean startInteraction)
           
protected  InteractionState startDraw(java.awt.geom.Point2D point, java.awt.event.MouseEvent e)
           
 
Methods inherited from class com.mindfusion.diagramming.BehaviorBase
createLink, getDiagram, getDiagramView, mouseMoved, setModfCursor, startDrawCommon
 
Methods inherited from class com.mindfusion.diagramming.Interaction
cancelDrag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanBehavior

protected PanBehavior(DiagramView flowChart)
Method Detail

setMouseCursor

protected CursorHint setMouseCursor(java.awt.geom.Point2D point,
                                    java.lang.Boolean startInteraction)
Specified by:
setMouseCursor in class BehaviorBase

startDraw

protected InteractionState startDraw(java.awt.geom.Point2D point,
                                     java.awt.event.MouseEvent e)
Specified by:
startDraw in class BehaviorBase

mousePressed

protected void mousePressed(java.awt.Point mousePosition,
                            java.awt.event.MouseEvent e)
Description copied from class: BehaviorBase
Invoked when the mouse button is pressed.

Overrides:
mousePressed in class BehaviorBase
Parameters:
mousePosition - A Point instance that specifies the mouse pointer position.

mouseMoved

protected void mouseMoved(java.awt.Point mousePosition)

mouseReleased

protected void mouseReleased(java.awt.Point mousePosition,
                             java.awt.event.MouseEvent e)
Description copied from class: BehaviorBase
Invoked when the mouse button is released.

Overrides:
mouseReleased in class BehaviorBase
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 BehaviorBase