com.mindfusion.diagramming
Class Manipulator

java.lang.Object
  extended by com.mindfusion.diagramming.Manipulator
Direct Known Subclasses:
Folder, ScrollBar, TableSectionExpander

public abstract class Manipulator
extends java.lang.Object


Field Summary
protected  DiagramItem item
           
 
Constructor Summary
Manipulator(DiagramItem item)
           
 
Method Summary
 DiagramItem getItem()
           
 boolean needsMouseMessages(java.awt.geom.Point2D point)
          Returns whether the manipulator object needs to track mouse events.
 void onMouseDown(java.awt.geom.Point2D mousePosition)
          Called when the left mouse button is pressed while the pointer is over this manipulator.
 void onMouseMove(java.awt.geom.Point2D mousePosition)
          Called when the mouse is moved while this manipulator tracks the mouse events.
 void onMouseUp(java.awt.geom.Point2D mousePosition)
          Called when the left mouse button is released while this manipulator tracks the mouse events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

protected DiagramItem item
Constructor Detail

Manipulator

public Manipulator(DiagramItem item)
Method Detail

getItem

public DiagramItem getItem()

needsMouseMessages

public boolean needsMouseMessages(java.awt.geom.Point2D point)
Returns whether the manipulator object needs to track mouse events.

Parameters:
point -
Returns:
true to track mouse events; otherwise, false.

onMouseDown

public void onMouseDown(java.awt.geom.Point2D mousePosition)
Called when the left mouse button is pressed while the pointer is over this manipulator.

Parameters:
mousePosition - A Point2D instance that specifies the current mouse position.

onMouseMove

public void onMouseMove(java.awt.geom.Point2D mousePosition)
Called when the mouse is moved while this manipulator tracks the mouse events.

Parameters:
mousePosition - A Point2D instance that specifies the current mouse position.

onMouseUp

public void onMouseUp(java.awt.geom.Point2D mousePosition)
Called when the left mouse button is released while this manipulator tracks the mouse events.

Parameters:
mousePosition - A Point2D instance that specifies the current mouse position.