Package ptolemy.vergil.actor
Class LinkController
- java.lang.Object
-
- diva.graph.BasicEdgeController
-
- ptolemy.vergil.actor.LinkController
-
- All Implemented Interfaces:
EdgeController
- Direct Known Subclasses:
MatchResultViewer.MatchResultLinkController
,TransformationEditor.TransformationLinkController
public class LinkController extends BasicEdgeController
This class provides interaction techniques for edges that are to be connected between ports and relations. Standard interaction techniques for an undirected edge are allowed.- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer, Contributor: Edward A. Lee, Bert Rodiers
- Pt.AcceptedRating:
- Red (johnr)
- Pt.ProposedRating:
- Red (eal)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
LinkController.LinkDropper
An inner class that handles interactive changes to connectivity.static class
LinkController.LinkRenderer
Render a visual representation of a link.static class
LinkController.LinkTarget
A connector target that returns sites on a link.-
Nested classes/interfaces inherited from class diva.graph.BasicEdgeController
BasicEdgeController.EdgeDropper
-
-
Field Summary
Fields Modifier and Type Field Description protected Configuration
_configuration
The configuration.protected static ConfigureAction
_configureAction
The configure action, which handles edit parameters requests.protected MenuActionFactory
_configureMenuFactory
The submenu for configure actions.protected MenuCreator
_menuCreator
The menu creator.protected PtolemyMenuFactory
_menuFactory
The factory belonging to the menu creator.
-
Constructor Summary
Constructors Constructor Description LinkController(GraphController controller)
Create a link controller associated with the specified graph controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setConfiguration(Configuration configuration)
Set the configuration.-
Methods inherited from class diva.graph.BasicEdgeController
addEdge, addEdge, clearEdge, drawEdge, getConnectorTarget, getController, getEdgeInteractor, getEdgeRenderer, removeEdge, render, setConnectorTarget, setEdgeInteractor, setEdgeRenderer
-
-
-
-
Field Detail
-
_configuration
protected Configuration _configuration
The configuration.
-
_configureAction
protected static ConfigureAction _configureAction
The configure action, which handles edit parameters requests.
-
_configureMenuFactory
protected MenuActionFactory _configureMenuFactory
The submenu for configure actions.
-
_menuCreator
protected MenuCreator _menuCreator
The menu creator.
-
_menuFactory
protected PtolemyMenuFactory _menuFactory
The factory belonging to the menu creator.
-
-
Constructor Detail
-
LinkController
public LinkController(GraphController controller)
Create a link controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration configuration)
Set the configuration. This is may be used by derived controllers to open files or URLs.- Parameters:
configuration
- The configuration.
-
-