com.mindfusion.diagramming
Class DrawNodesBehavior

java.lang.Object
  extended by com.mindfusion.diagramming.Interaction
      extended by com.mindfusion.diagramming.BehaviorBase
          extended by com.mindfusion.diagramming.DrawNodesBehavior
Direct Known Subclasses:
DrawContainersBehavior, DrawControlsBehavior, DrawShapesBehavior, DrawTablesBehavior, DrawTreeViewsBehavior

public abstract class DrawNodesBehavior
extends BehaviorBase

The base class for behavior types that allow drawing of nodes, but not links.


Field Summary
 
Fields inherited from class com.mindfusion.diagramming.BehaviorBase
currentCursor, diagramView
 
Constructor Summary
protected DrawNodesBehavior(DiagramView diagramView)
           
 
Method Summary
protected abstract  DiagramNode createNode()
           
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, mouseDragged, mouseMoved, mousePressed, mouseReleased, 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

DrawNodesBehavior

protected DrawNodesBehavior(DiagramView diagramView)
Method Detail

startDraw

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

setMouseCursor

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

createNode

protected abstract DiagramNode createNode()