|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.Manipulator
public abstract class Manipulator
The base class for interactive widgets displayed in diagram items.
Field Summary | |
---|---|
protected DiagramItem |
item
|
Constructor Summary | |
---|---|
Manipulator(DiagramItem item)
|
Method Summary | |
---|---|
boolean |
drawsInLocalCoordinates()
Returns whether the manipulator object draws in local or global coordinates. |
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 |
---|
protected DiagramItem item
Constructor Detail |
---|
public Manipulator(DiagramItem item)
Method Detail |
---|
public DiagramItem getItem()
public boolean needsMouseMessages(java.awt.geom.Point2D point)
point
-
public boolean drawsInLocalCoordinates()
public void onMouseDown(java.awt.geom.Point2D mousePosition)
mousePosition
- A Point2D instance that specifies the current mouse position.public void onMouseMove(java.awt.geom.Point2D mousePosition)
mousePosition
- A Point2D instance that specifies the current mouse position.public void onMouseUp(java.awt.geom.Point2D mousePosition)
mousePosition
- A Point2D instance that specifies the current mouse position.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |