public class NodeDragInteractor extends DragInteractor
Red |
Constructor and Description |
---|
NodeDragInteractor(GraphController controller)
Create a new NodeDragInteractor and give it a pointer
to its controller to it can find other useful objects
|
Modifier and Type | Method and Description |
---|---|
GraphController |
getController()
Return the controller set in the constructor.
|
void |
translate(LayerEvent e,
double x,
double y)
Drag all selected nodes and move any attached edges
|
addLayerListener, appendConstraint, constrainPoint, fireLayerEvent, getSelectiveEnabled, getTargetArray, getX, getY, mouseDragged, mousePressed, mouseReleased, prependConstraint, removeLayerListener, setSelectiveEnabled, setTargetArray, setup, targets
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
public NodeDragInteractor(GraphController controller)
public GraphController getController()
public void translate(LayerEvent e, double x, double y)
translate
in class DragInteractor