ptolemy.vergil.gt
Class StateMatcherIcon

java.lang.Object
  extended by ptolemy.kernel.util.NamedObj
      extended by ptolemy.kernel.util.Attribute
          extended by ptolemy.vergil.icon.EditorIcon
              extended by ptolemy.vergil.icon.NameIcon
                  extended by ptolemy.vergil.modal.StateIcon
                      extended by ptolemy.vergil.gt.StateMatcherIcon
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

public class StateMatcherIcon
extends StateIcon

Since:
Ptolemy II 6.1
Version:
$Id: StateMatcherIcon.java 53665 2009-05-12 23:13:41Z tfeng $
Author:
Thomas Huining Feng
See Also:
Serialized Form
Accepted Rating:
Red (tfeng)
Proposed Rating:
Red (tfeng)

Nested Class Summary
 
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
 
Field Summary
 
Fields inherited from class ptolemy.vergil.icon.NameIcon
_labelFont, _roundingValue, _spacingValue, _xPadding, _yPadding, rounding, spacing
 
Fields inherited from class ptolemy.vergil.icon.EditorIcon
_containerToBe, _iconCache
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Constructor Summary
StateMatcherIcon(NamedObj container, java.lang.String name)
           
 
Method Summary
 Figure createBackgroundFigure()
          Create a new background figure.
 Figure createFigure()
          Create a new Diva figure that visually represents this icon.
 javax.swing.Icon createIcon()
          Create an icon.
 
Methods inherited from class ptolemy.vergil.modal.StateIcon
_getFill, _getLineWidth
 
Methods inherited from class ptolemy.vergil.icon.NameIcon
_getBackgroundSize, attributeChanged, setContainer
 
Methods inherited from class ptolemy.vergil.icon.EditorIcon
_createDefaultBackgroundFigure, _isPropertySet, _recreateFigure, clone, getContainerOrContainerToBe, setContainerToBe
 
Methods inherited from class ptolemy.kernel.util.Attribute
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _recordDecoratedAttributes, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, 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, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateMatcherIcon

public StateMatcherIcon(NamedObj container,
                        java.lang.String name)
                 throws NameDuplicationException,
                        IllegalActionException
Parameters:
container -
name -
Throws:
NameDuplicationException
IllegalActionException
Method Detail

createBackgroundFigure

public Figure createBackgroundFigure()
Description copied from class: NameIcon
Create a new background figure. This overrides the base class to draw a box around the value display, where the width of the box depends on the value.

Overrides:
createBackgroundFigure in class NameIcon
Returns:
A new figure.

createFigure

public Figure createFigure()
Description copied from class: NameIcon
Create a new Diva figure that visually represents this icon. The figure will be an instance of LabelFigure that renders the name of the container.

Overrides:
createFigure in class NameIcon
Returns:
A new CompositeFigure consisting of the label.

createIcon

public javax.swing.Icon createIcon()
Description copied from class: StateIcon
Create an icon.

Overrides:
createIcon in class StateIcon
Returns:
The icon.