Package ptolemy.vergil.ontologies
Class ConceptController
- java.lang.Object
-
- All Implemented Interfaces:
NodeController
public class ConceptController extends AttributeInOntologyController
The node controller for ontology concept model elements. This class provides interaction with nodes that represent concepts in an ontology model. It extends the AttributeController which provides a double click binding to edit the parameters of the concept, and a context menu containing commands to edit parameters ("Configure"), rename, and get documentation. In addition, it binds the action to edit the acceptability flag for a concept.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Charles Shelton, Man-Kit Leung
- Pt.AcceptedRating:
- Red (cshelton)
- Pt.ProposedRating:
- Red (cshelton)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.vergil.kernel.AttributeController
AttributeController.Access
-
Nested classes/interfaces inherited from class ptolemy.vergil.basic.IconController
IconController.IconRenderer
-
-
Field Summary
Fields Modifier and Type Field Description protected ptolemy.vergil.ontologies.ConceptController.ToggleAcceptabilityAction
_toggleAcceptabilityAction
The toggle acceptability context menu action.-
Fields inherited from class ptolemy.vergil.kernel.AttributeWithIconController
_editIconAction, _removeIconAction
-
Fields inherited from class ptolemy.vergil.kernel.AttributeController
_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL
-
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 ConceptController(GraphController controller)
Create a concept controller associated with the specified graph controller.ConceptController(GraphController controller, AttributeController.Access access)
Create a concept controller associated with the specified graph controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
_getComponentType()
Get the class label of the component which is a Concept.void
addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph.-
Methods inherited from class ptolemy.vergil.kernel.AttributeController
_moveToFirstDescription, _moveToLastDescription, renderDecoratorHighlight, renderHighlight, setConfiguration
-
Methods inherited from class ptolemy.vergil.basic.ParameterizedNodeController
getConfigureMenuFactory
-
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
-
ConceptController
public ConceptController(GraphController controller)
Create a concept controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.
-
ConceptController
public ConceptController(GraphController controller, AttributeController.Access access)
Create a concept controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.access
- The access level.
-
-
Method Detail
-
addHotKeys
public void addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph. It would be better that this method was added higher in the hierarchy. Now most controllers- Overrides:
addHotKeys
in classAttributeController
- Parameters:
jgraph
- The JGraph to which hot keys are to be added.
-
_getComponentType
protected java.lang.String _getComponentType()
Get the class label of the component which is a Concept.- Overrides:
_getComponentType
in classAttributeController
- Returns:
- The string "Concept".
-
-