Package diva.graph
Class NodeInteractor
- java.lang.Object
-
- All Implemented Interfaces:
LayerListener
,LayerMotionListener
,Interactor
,java.util.EventListener
public class NodeInteractor extends SelectionInteractor
An interactor for nodes.- Version:
- $Id$
- Author:
- Michael Shilman, John Reekie
- Pt.AcceptedRating:
- Red
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DragInteractor
getDragInteractor()
Get the interactor that drags nodesGraphController
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
-
-
-
-
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
-
-