public class ValueIcon extends XMLIcon
Red (johnr) |
Yellow (eal) |
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
displayWidth
The number of characters to display.
|
Parameter |
numberOfLines
The number of lines to display.
|
_figures
_containerToBe, _iconCache
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ValueIcon(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 Figure |
_createDefaultBackgroundFigure()
Create a new default background figure, which is a bullet.
|
Figure |
createBackgroundFigure()
Create a background figure based on this icon, which is a text
element with the name of the container, a colon, and its value.
|
Figure |
createFigure()
Create a new Diva figure that visually represents this icon.
|
_description, _recreateFigure, clone, createIcon, getXMLIcon, getXMLIcon, paintedList, toString, valueChanged
_addLiveFigure, _liveFigureIterator, _trimLiveFigures
_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, workspace
public Parameter displayWidth
public Parameter numberOfLines
public ValueIcon(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 attribute.NameDuplicationException
- If the name coincides with
an attribute already in the container.public Figure createBackgroundFigure()
createBackgroundFigure
in class XMLIcon
public Figure createFigure()
createFigure
in class EditorIcon
protected Figure _createDefaultBackgroundFigure()
_createDefaultBackgroundFigure
in class EditorIcon