|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.interactor.AbstractInteractor
diva.canvas.interactor.DragInteractor
diva.graph.NodeDragInteractor
ptolemy.vergil.basic.LocatableNodeDragInteractor
An interaction role that drags nodes that have locatable objects as semantic objects. When the node is dragged, this interactor updates the location in the locatable object with the new location of the figure.
The dragging of a selection is undoable, and is based on the difference between the point where the mouse was pressed and where the mouse was released. This information is used to create MoML to undo the move if requested.
| Red (johnr) |
| Red (eal) |
| Constructor Summary | |
LocatableNodeDragInteractor(LocatableNodeController controller)
Create a new interactor contained within the given controller. |
|
| Method Summary | |
void |
mousePressed(LayerEvent e)
When the mouse is pressed before dragging, store a copy of the pressed point location so that a relative move can be evaluated for undo purposes. |
void |
mouseReleased(LayerEvent e)
When the mouse is released after dragging, mark the frame modified and update the panner, and generate an undo entry for the move. |
void |
setSnapResolution(double resolution)
Specify the snap resolution. |
void |
translate(LayerEvent e,
double x,
double y)
Drag all selected nodes and move any attached edges. |
| Methods inherited from class diva.graph.NodeDragInteractor |
getController |
| Methods inherited from class diva.canvas.interactor.DragInteractor |
addLayerListener, appendConstraint, constrainPoint, fireLayerEvent, getSelectiveEnabled, getTargetArray, getX, getY, mouseDragged, prependConstraint, removeLayerListener, setSelectiveEnabled, setTargetArray, setup, targets |
| Methods inherited from class diva.canvas.interactor.AbstractInteractor |
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LocatableNodeDragInteractor(LocatableNodeController controller)
| Method Detail |
public void mousePressed(LayerEvent e)
mousePressed in interface LayerListenermousePressed in class DragInteractore - The press event.public void mouseReleased(LayerEvent e)
mouseReleased in interface LayerListenermouseReleased in class DragInteractore - The release event.public void setSnapResolution(double resolution)
resolution - The snap resolution.
public void translate(LayerEvent e,
double x,
double y)
translate in class NodeDragInteractore - The event triggering this translation.x - The horizontal delta.y - The vertical delta.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||