diva.graph
Class EdgeCreator

java.lang.Object
  extended bydiva.canvas.interactor.AbstractInteractor
      extended bydiva.graph.EdgeCreator
All Implemented Interfaces:
java.util.EventListener, Interactor, LayerListener, LayerMotionListener

public abstract class EdgeCreator
extends AbstractInteractor

An interactor that interactively drags edges from one node to another.

Version:
$Id: EdgeCreator.java,v 1.9 2004/04/13 22:14:03 cxh Exp $
Author:
Steve Neuendorffer
Accepted Rating:
Red

Constructor Summary
EdgeCreator(GraphController controller)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface LayerListener
Overrides:
mousePressed in class AbstractInteractor

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.