Package ptolemy.vergil.actor
Class TypeOpaqueCompositeActorTableauFactory
- java.lang.Object
-
- ptolemy.kernel.util.NamedObj
-
- ptolemy.kernel.util.Attribute
-
- ptolemy.actor.gui.TableauFactory
-
- ptolemy.vergil.actor.ActorGraphTableau.Factory
-
- ptolemy.vergil.actor.TypeOpaqueCompositeActorTableauFactory
-
- All Implemented Interfaces:
java.lang.Cloneable
,Changeable
,Configurable
,Debuggable
,DebugListener
,Derivable
,ModelErrorHandler
,MoMLExportable
,Moveable
,Nameable
public class TypeOpaqueCompositeActorTableauFactory extends ActorGraphTableau.Factory
A factory that creates graph editing tableaux for untyped models.- Since:
- Ptolemy II 4.1 Exp $
- Version:
- $Id: TypeOpaqueCompositeActor.java,v 1.73 2004/04/13 05:12:39 cxh
- Author:
- Elaine Cheong and Edward A. Lee
- See Also:
TypeOpaqueCompositeActor
,ActorGraphTableau.Factory
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Nested Class Summary
-
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 TypeOpaqueCompositeActorTableauFactory(NamedObj container, java.lang.String name)
Create an factory with the given name and container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tableau
createTableau(Effigy effigy)
Create a tableau in the default workspace with no name for the given Effigy.-
Methods inherited from class ptolemy.actor.gui.TableauFactory
_configureTableau, configure, getConfigureSource, getConfigureText
-
Methods inherited from class ptolemy.kernel.util.Attribute
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, 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
-
TypeOpaqueCompositeActorTableauFactory
public TypeOpaqueCompositeActorTableauFactory(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
Create an factory with the given name and container.- Parameters:
container
- The container.name
- The name.- Throws:
IllegalActionException
- If the container is incompatible with this attribute.NameDuplicationException
- If the name coincides with an attribute already in the container.
-
-
Method Detail
-
createTableau
public Tableau createTableau(Effigy effigy) throws java.lang.Exception
Create a tableau in the default workspace with no name for the given Effigy. The tableau will created with a new unique name in the given model effigy. If this factory cannot create a tableau for the given effigy (if it is not of type TypeOpaqueCompositeActor) then return null. It is the responsibility of callers of this method to check the return value and call show().- Overrides:
createTableau
in classActorGraphTableau.Factory
- Parameters:
effigy
- The model effigy.- Returns:
- A new ActorGraphTableau, if the effigy is a PtolemyEffigy, or null otherwise.
- Throws:
java.lang.Exception
- If an exception occurs when creating the tableau.
-
-