diva.graphx.interaction
Class NodeDragInteractor
java.lang.Object
diva.canvas.interactor.AbstractInteractor
diva.canvas.interactor.DragInteractor
diva.graphx.interaction.NodeDragInteractor
- All Implemented Interfaces:
- LayerListener, LayerMotionListener, Interactor, EventListener
public class NodeDragInteractor
- extends DragInteractor
An interactor that drags nodes.
- Version:
- $Revision: 1.2 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu), John Reekie (johnr@eecs.berkeley.edu)
Constructor Summary |
NodeDragInteractor(GraphController controller)
Create a new NodeDragInteractor and give it a pointer
to its controller to it can find other useful objects |
Method Summary |
void |
translate(LayerEvent e,
double x,
double y)
Drag all selected nodes and move any attached edges |
Methods inherited from class diva.canvas.interactor.DragInteractor |
addLayerListener, appendConstraint, constrainPoint, fireLayerEvent, getSelectiveEnabled, getTargetArray, getX, getY, mouseDragged, mousePressed, mouseReleased, 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 |
NodeDragInteractor
public NodeDragInteractor(GraphController controller)
- Create a new NodeDragInteractor and give it a pointer
to its controller to it can find other useful objects
translate
public void translate(LayerEvent e,
double x,
double y)
- Drag all selected nodes and move any attached edges
- Overrides:
translate
in class DragInteractor
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.