Package ptolemy.vergil.ontologies
Class OntologyEntityController
- java.lang.Object
-
- All Implemented Interfaces:
NodeController
public class OntologyEntityController extends AttributeInOntologyController
The node controller for an ontology in an ontology solver model. This class duplicates code fromActorController
to provide the Look Inside and Open Instance actions in the context menu.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Charles Shelton
- 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 LookInsideAction
_lookInsideAction
The action that handles opening an ontology model.protected ptolemy.vergil.ontologies.OntologyEntityController.OpenInstanceAction
_openInstanceAction
The action that handles opening an instance of an ontology class.-
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 OntologyEntityController(GraphController controller)
Create an ontology controller associated with the specified graph controller with full access.OntologyEntityController(GraphController controller, AttributeController.Access access)
Create an ontology 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 an Ontology.void
addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph.void
setConfiguration(Configuration configuration)
Set the configuration for OntologyEntityController.-
Methods inherited from class ptolemy.vergil.kernel.AttributeController
_moveToFirstDescription, _moveToLastDescription, renderDecoratorHighlight, renderHighlight
-
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
-
-
-
-
Field Detail
-
_lookInsideAction
protected LookInsideAction _lookInsideAction
The action that handles opening an ontology model.
-
_openInstanceAction
protected ptolemy.vergil.ontologies.OntologyEntityController.OpenInstanceAction _openInstanceAction
The action that handles opening an instance of an ontology class.
-
-
Constructor Detail
-
OntologyEntityController
public OntologyEntityController(GraphController controller)
Create an ontology controller associated with the specified graph controller with full access.- Parameters:
controller
- The associated graph controller.
-
OntologyEntityController
public OntologyEntityController(GraphController controller, AttributeController.Access access)
Create an ontology 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.- Overrides:
addHotKeys
in classAttributeController
- Parameters:
jgraph
- The JGraph to which hot keys are to be added.
-
setConfiguration
public void setConfiguration(Configuration configuration)
Set the configuration for OntologyEntityController. This includes setting the configuration for its _lookinsideAction menu object.- Overrides:
setConfiguration
in classAttributeController
- Parameters:
configuration
- The given configuration object to be used to set the configuration.
-
_getComponentType
protected java.lang.String _getComponentType()
Get the class label of the component which is an Ontology.- Overrides:
_getComponentType
in classAttributeController
- Returns:
- The string "Ontology".
-
-