Package diva.graph
Class EdgeCreator
- java.lang.Object
-
- diva.canvas.interactor.AbstractInteractor
-
- diva.graph.EdgeCreator
-
- All Implemented Interfaces:
LayerListener
,LayerMotionListener
,Interactor
,java.util.EventListener
public abstract class EdgeCreator extends AbstractInteractor
An interactor that interactively drags edges from one node to another.- Version:
- $Id$
- Author:
- Steve Neuendorffer
- Pt.AcceptedRating:
- Red
-
-
Constructor Summary
Constructors Constructor Description EdgeCreator(GraphController controller)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Object
createEdge()
Create a new Edge.void
mousePressed(LayerEvent e)
Create a new edge, add it to the graph controller and add the connector to the selection.-
Methods inherited from class diva.canvas.interactor.AbstractInteractor
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
-
-
-
-
Constructor Detail
-
EdgeCreator
public EdgeCreator(GraphController controller)
-
-
Method Detail
-
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 interfaceLayerListener
- Overrides:
mousePressed
in classAbstractInteractor
- Parameters:
e
- The event
-
createEdge
public abstract java.lang.Object createEdge()
Create a new Edge. Subclasses should implement this method to create an object that is consistent with the graphmodel being used.
-
-