diva.graph
Class EdgeCreator

java.lang.Object
  extended by diva.canvas.interactor.AbstractInteractor
      extended by diva.graph.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.2 $
Author:
Steve Neuendorffer (neuendor@eecs.berkeley.edu)

Constructor Summary
EdgeCreator(GraphController controller)
           
 
Method Summary
abstract  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 Object createEdge()
Create a new Edge. Subclasses should implement this method to create an object that is consistent with the graphmodel being used.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.