Package ptolemy.vergil.actor
Class ActorEditorGraphController.LinkCreator
- java.lang.Object
-
- diva.canvas.interactor.AbstractInteractor
-
- ptolemy.vergil.actor.ActorEditorGraphController.LinkCreator
-
- All Implemented Interfaces:
LayerListener
,LayerMotionListener
,Interactor
,java.util.EventListener
- Enclosing class:
- ActorEditorGraphController
protected class ActorEditorGraphController.LinkCreator extends AbstractInteractor
This class is an interactor that interactively drags edges from one terminal to another, creating a link to connect them.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LinkCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mousePressed(LayerEvent event)
Create a new edge when the mouse is pressed.-
Methods inherited from class diva.canvas.interactor.AbstractInteractor
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
-
-
-
-
Method Detail
-
mousePressed
public void mousePressed(LayerEvent event)
Create a new edge when the mouse is pressed.- Specified by:
mousePressed
in interfaceLayerListener
- Overrides:
mousePressed
in classAbstractInteractor
- Parameters:
event
- The event
-
-