public class MonitorIcon extends DynamicEditorIcon
setFigure(Figure)
.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 |
---|
MonitorIcon(NamedObj container,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
diva.canvas.Figure |
createBackgroundFigure()
Create a new default background figure.
|
diva.canvas.Figure |
createFigure()
Create a new Diva figure that visually represents this icon.
|
diva.canvas.Figure |
getFigure() |
java.lang.String |
getText()
Gets the text of this icon
|
void |
setBackgroundColor(java.awt.Color color) |
void |
setFigure(diva.canvas.Figure figure)
Sets the foreground figure for this icon.
|
void |
setFont(java.awt.Font font)
Sets the text font for this icon
|
void |
setForegroundColor(java.awt.Color color)
Set the color of the text for this icon.
|
void |
setText(java.lang.String _text)
Sets the text for this icon
|
_addLiveFigure, _liveFigureIterator, _trimLiveFigures, clone
_createDefaultBackgroundFigure, _isPropertySet, _recreateFigure, createIcon, 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, _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
public MonitorIcon(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public void setFigure(diva.canvas.Figure figure)
figure
- public diva.canvas.Figure getFigure()
public diva.canvas.Figure createBackgroundFigure()
createBackgroundFigure
in class EditorIcon
public diva.canvas.Figure createFigure()
EditorIcon
createFigure
in class EditorIcon
public void setBackgroundColor(java.awt.Color color)
public void setForegroundColor(java.awt.Color color)
public void setText(java.lang.String _text)
public java.lang.String getText()
public void setFont(java.awt.Font font)