diva.graphx.interaction
Class EdgeCreator
java.lang.Object
diva.canvas.interactor.AbstractInteractor
diva.graphx.interaction.EdgeCreator
- All Implemented Interfaces:
- LayerListener, LayerMotionListener, Interactor, EventListener
public abstract class EdgeCreator
- extends AbstractInteractor
An interactor that interactively drags edges from one node
to another.
- Version:
- $Revision: 1.3 $
- Author:
- Steve Neuendorffer (neuendor@eecs.berkeley.edu)
Methods inherited from class diva.canvas.interactor.AbstractInteractor |
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, setConsuming, setEnabled, setMotionEnabled, setMouseFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdgeCreator
public EdgeCreator(GraphController controller)
mousePressed
public void mousePressed(LayerEvent e)
- Create a new edge, add it to the graph controller and add
the connector to the selection.
- Specified by:
mousePressed
in interface LayerListener
- Overrides:
mousePressed
in class AbstractInteractor
createEdge
public abstract Object createEdge()
- Create a new Edge. Subclasses should implement this method to create
an object that is consistent with the graph model being used.
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.