diva.graph
Class NodeInteractor

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

public class NodeInteractor
extends SelectionInteractor

An interactor for nodes.

Version:
$Id: NodeInteractor.java,v 1.8 2004/04/13 22:14:33 cxh Exp $
Author:
Michael Shilman, John Reekie
Accepted Rating:
Red

Constructor Summary
NodeInteractor(GraphController controller)
          Create a new node interactor that belongs to the given controller.
NodeInteractor(GraphController controller, SelectionModel sm)
          Create a new node interactor that belongs to the given controller and that uses the given selection model
 
Method Summary
 DragInteractor getDragInteractor()
          Get the interactor that drags nodes
 GraphController getGraphController()
          Return the graph controller that manages this interactor.
 void setDragInteractor(DragInteractor i)
          Set the interactor that drags nodes
 
Methods inherited from class diva.canvas.interactor.SelectionInteractor
accept, getSelectionFilter, getSelectionModel, getSelectionRenderer, getToggleFilter, isSelected, mousePressed, setConsuming, setPrototypeDecorator, setSelectionFilter, setSelectionManipulator, setSelectionModel, setSelectionRenderer, setToggleFilter
 
Methods inherited from class diva.canvas.interactor.CompositeInteractor
addInteractor, interactors, isMotionEnabled, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, removeInteractor
 
Methods inherited from class diva.canvas.interactor.AbstractInteractor
getMouseFilter, isConsuming, isEnabled, mouseClicked, setEnabled, setMotionEnabled, setMouseFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeInteractor

public NodeInteractor(GraphController controller)
Create a new node interactor that belongs to the given controller.


NodeInteractor

public NodeInteractor(GraphController controller,
                      SelectionModel sm)
Create a new node interactor that belongs to the given controller and that uses the given selection model

Method Detail

getDragInteractor

public DragInteractor getDragInteractor()
Get the interactor that drags nodes


getGraphController

public GraphController getGraphController()
Return the graph controller that manages this interactor.


setDragInteractor

public void setDragInteractor(DragInteractor i)
Set the interactor that drags nodes