Package ptolemy.data.ontologies.gui
Class ProductLatticeOntologySolverDisplayActions
- java.lang.Object
-
- ptolemy.kernel.util.NamedObj
-
- ptolemy.kernel.util.Attribute
-
- ptolemy.kernel.util.SingletonAttribute
-
- ptolemy.vergil.basic.NodeControllerFactory
-
- ptolemy.data.ontologies.gui.OntologyDisplayActions
-
- ptolemy.data.ontologies.gui.ProductLatticeOntologySolverDisplayActions
-
- All Implemented Interfaces:
java.lang.Cloneable
,Changeable
,Debuggable
,DebugListener
,Derivable
,ModelErrorHandler
,MoMLExportable
,Moveable
,Nameable
,Singleton
public class ProductLatticeOntologySolverDisplayActions extends OntologyDisplayActions
GUI element that provides context menus for a ProductLatticeOntologySolver. This UI will be invoked when you right click on the ProductLatticeOntologySolver.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Charles Shelton
- Pt.AcceptedRating:
- Red (cshelton)
- Pt.ProposedRating:
- Red (cshelton)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ProductLatticeOntologySolverDisplayActions.ProductLatticeHighlighterController
The controller that adds commands to the context menu.-
Nested classes/interfaces inherited from class ptolemy.data.ontologies.gui.OntologyDisplayActions
OntologyDisplayActions.HighlighterController
-
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
-
-
Field Summary
-
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
-
-
Constructor Summary
Constructors Constructor Description ProductLatticeOntologySolverDisplayActions(NamedObj container, java.lang.String name)
Construct a ProductLatticeOntologyDisplayActions object with the specified container and name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedObjController
create(GraphController controller)
Return a new node controller.void
updateHighlightColorsMenu(ProductLatticeOntology solverOntology)
Update the highlight colors menu for the ProductLatticeOntologySolver based on its ProductLatticeOntology.-
Methods inherited from class ptolemy.kernel.util.SingletonAttribute
setContainer
-
Methods inherited from class ptolemy.kernel.util.Attribute
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
-
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
-
-
-
-
Constructor Detail
-
ProductLatticeOntologySolverDisplayActions
public ProductLatticeOntologySolverDisplayActions(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
Construct a ProductLatticeOntologyDisplayActions object with the specified container and name.- Parameters:
container
- The container which should be a ProductLatticeOntologySolver object.name
- The name of the ProductLatticeOntologyDisplayActions object.- Throws:
IllegalActionException
- If the ProductLatticeOntologyDisplayActions object cannot be created.NameDuplicationException
- If the name coincides with an attribute already in the container.
-
-
Method Detail
-
create
public NamedObjController create(GraphController controller)
Return a new node controller. This base class returns an instance of IconController. Derived classes can return some other class to customize the context menu.- Overrides:
create
in classOntologyDisplayActions
- Parameters:
controller
- The associated graph controller.- Returns:
- A new node controller.
-
updateHighlightColorsMenu
public void updateHighlightColorsMenu(ProductLatticeOntology solverOntology) throws IllegalActionException
Update the highlight colors menu for the ProductLatticeOntologySolver based on its ProductLatticeOntology.- Parameters:
solverOntology
- The ProductLatticeOntology for the solver.- Throws:
IllegalActionException
- Thrown if there is a problem creating the new highlight colors menu.
-
-