Package ptolemy.vergil.kernel
Class RelationController
- java.lang.Object
-
- diva.graph.BasicNodeController
-
- ptolemy.vergil.basic.LocatableNodeController
-
- ptolemy.vergil.basic.NamedObjController
-
- ptolemy.vergil.basic.ParameterizedNodeController
-
- ptolemy.vergil.kernel.RelationController
-
- All Implemented Interfaces:
NodeController
- Direct Known Subclasses:
MatchResultViewer.MatchResultRelationController
,TransformationEditor.TransformationRelationController
public class RelationController extends ParameterizedNodeController
This class provides interaction with nodes that represent Ptolemy II relations. It provides a double click binding to edit the parameters of the relation, and a context menu containing a command to edit parameters ("Configure"), and a command to get documentation.- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer and Edward A. Lee
- Pt.AcceptedRating:
- Red (johnr)
- Pt.ProposedRating:
- Red (eal)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RelationController.RelationRenderer
The renderer for relation node.
-
Field Summary
-
Fields inherited from class ptolemy.vergil.basic.ParameterizedNodeController
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory
-
Fields inherited from class ptolemy.vergil.basic.NamedObjController
_configuration
-
Fields inherited from class ptolemy.vergil.basic.LocatableNodeController
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR
-
-
Constructor Summary
Constructors Constructor Description RelationController(GraphController controller)
Create a relation 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 ptolemy.vergil.basic.ParameterizedNodeController
getConfigureMenuFactory
-
Methods inherited from class ptolemy.vergil.basic.NamedObjController
addHotKeys
-
Methods inherited from class ptolemy.vergil.basic.LocatableNodeController
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolution
-
Methods inherited from class diva.graph.BasicNodeController
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
-
-
-
-
Constructor Detail
-
RelationController
public RelationController(GraphController controller)
Create a relation 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 used in derived classes to to open files (such as documentation). The configuration is is important because it keeps track of which files are already open and ensures that there is only one editor operating on the file at any one time.- Overrides:
setConfiguration
in classNamedObjController
- Parameters:
configuration
- The configuration.
-
-