public class AttributeValueIcon extends XMLIcon
| Red (johnr) |
| Yellow (eal) |
NamedObj.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
protected static java.awt.Font |
_labelFont
The font used.
|
StringAttribute |
attributeName
The name of the attribute of the container whose value to display.
|
Parameter |
displayHeight
The maximum number of lines to display.
|
Parameter |
displayWidth
The number of characters to display.
|
StringParameter |
entityName
Name of the entity contained by the container whose attribute
this icon will display.
|
_figures_containerToBe, _iconCache_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS| Constructor and Description |
|---|
AttributeValueIcon(NamedObj container,
java.lang.String name)
Create a new icon with the given name in the given container.
|
| Modifier and Type | Method and Description |
|---|---|
protected Settable |
_associatedAttribute()
Return the associated attribute.
|
protected java.lang.String |
_attributeValueString()
Get the string value of the attribute to render in the icon.
|
protected java.lang.String |
_displayString()
Get the string to render in the icon.
|
Figure |
createFigure()
Create a new Diva figure that visually represents this icon.
|
_description, _recreateFigure, clone, createBackgroundFigure, createIcon, getXMLIcon, getXMLIcon, paintedList, toString, valueChanged_addLiveFigure, _liveFigureIterator, _trimLiveFigures_createDefaultBackgroundFigure, _isPropertySet, getContainerOrContainerToBe, setContainerToBe_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _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, uniqueName, validateSettables, workspacepublic StringAttribute attributeName
public Parameter displayHeight
public Parameter displayWidth
public StringParameter entityName
protected static final java.awt.Font _labelFont
public AttributeValueIcon(NamedObj container, java.lang.String name) throws NameDuplicationException, IllegalActionException
container - The container for this attribute.name - The name of this attribute.IllegalActionException - If thrown by the parent
class or while setting an attributeNameDuplicationException - If the name coincides with
an attribute already in the container.public Figure createFigure()
createFigure in class EditorIconprotected Settable _associatedAttribute() throws IllegalActionException
entityName is given,
then the associated attribute is attribute with name given by
attributeName contained by the specified entity.
If no entityName is given, then the associated attribute is
the one contained by the container of this object with the
specified name. If no attributeName is given either, and the
the container of this object is an Attribute, then the associated
attribute is that container. Otherwise, throw an exception.IllegalActionException - If no Settable associated attribute
can be found.protected java.lang.String _attributeValueString()
protected java.lang.String _displayString()