diva.graph
Class NodeInteractor

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

public class NodeInteractor
extends SelectionInteractor

An interactor for nodes.

Version:
$Id: NodeInteractor.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman, John Reekie
Accepted Rating:
Red

Field Summary
private  GraphController _controller
          The graph controller that manages this interactor.
private  DragInteractor _nodeDragInteractor
          The interactor that drags nodes
 
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
 

Field Detail

_nodeDragInteractor

private DragInteractor _nodeDragInteractor
The interactor that drags nodes


_controller

private GraphController _controller
The graph controller that manages this interactor.

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