public class KeplerXMLIcon extends XMLIcon implements ValueListener
The XML schema used in the "_iconDescription" and "_smallIconDescription" attributes is SVG (scalable vector graphics), although currently Diva only supports a small subset of SVG.
NamedObj.ContainedObjectsIterator
_figures
_containerToBe, _iconCache
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
KeplerXMLIcon(NamedObj container,
java.lang.String name)
Create a new icon with the given name in the given container.
|
KeplerXMLIcon(Workspace workspace,
java.lang.String name)
Construct an icon in the specified workspace and name.
|
Modifier and Type | Method and Description |
---|---|
diva.canvas.Figure |
createBackgroundFigure()
Create a background Figure based on this icon.
|
javax.swing.Icon |
createIcon()
Create a new Swing icon to use as a thumbnail in the Actor Library.
|
java.lang.String |
toString()
Return a string representing this Icon.
|
void |
valueChanged(Settable settable)
React to the fact that the value of an attribute named "_iconDescription"
contained by the same container has changed value by redrawing the
figure.
|
_description, _recreateFigure, clone, getXMLIcon, getXMLIcon, paintedList
_addLiveFigure, _liveFigureIterator, _trimLiveFigures
_createDefaultBackgroundFigure, _isPropertySet, createFigure, 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 KeplerXMLIcon(Workspace workspace, java.lang.String name) throws IllegalActionException
workspace
- The workspace that will list the attribute.name
- StringIllegalActionException
- If the specified name contains a period.Increment the version number of the
workspace.
public KeplerXMLIcon(NamedObj container, java.lang.String name) throws NameDuplicationException, IllegalActionException
container
- The container for this attribute.name
- The name of this attribute.NameDuplicationException
IllegalActionException
public diva.canvas.Figure createBackgroundFigure()
createBackgroundFigure
in class XMLIcon
public javax.swing.Icon createIcon()
createIcon
in class XMLIcon
public java.lang.String toString()
public void valueChanged(Settable settable)
valueChanged
in interface ValueListener
valueChanged
in class XMLIcon
settable
- The object that has changed value.