public class ConstraintMonitorIcon extends BoxedValueIcon
ConstraintMonitor
.NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
ColorAttribute |
closeColor
Color of the box to use when the constraint is close
to the threshold.
|
Parameter |
closeFraction
Fraction of the threshold that is to be considered close
to the threshold.
|
ColorAttribute |
highColor
Color of the box to use when the constraint is above
the threshold.
|
ColorAttribute |
okColor
Color of the box to use when the constraint is satisfied.
|
boxColor
_labelFont, attributeName, displayHeight, displayWidth, entityName
_figures
_containerToBe, _iconCache
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ConstraintMonitorIcon(NamedObj container,
java.lang.String name)
Create a new icon with the given name in the given container.
|
Modifier and Type | Method and Description |
---|---|
Figure |
createBackgroundFigure()
Override the base class to modify the background color, if appropriate.
|
void |
setContainer(NamedObj container)
Override the base class to throw an exception if the container is
not an instance of
ConstraintMonitor . |
_associatedAttribute, _attributeValueString, _displayString, createFigure
_description, _recreateFigure, clone, createIcon, getXMLIcon, getXMLIcon, paintedList, toString, valueChanged
_addLiveFigure, _liveFigureIterator, _trimLiveFigures
_createDefaultBackgroundFigure, _isPropertySet, getContainerOrContainerToBe, setContainerToBe
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, 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 ColorAttribute closeColor
public Parameter closeFraction
public ColorAttribute highColor
public ColorAttribute okColor
public ConstraintMonitorIcon(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 createBackgroundFigure()
createBackgroundFigure
in class BoxedValueIcon
public void setContainer(NamedObj container) throws IllegalActionException, NameDuplicationException
ConstraintMonitor
.setContainer
in class Attribute
container
- The container to attach this attribute to..IllegalActionException
- If this attribute is not of the
expected class for the container, or it has no name,
or the attribute and container are not in the same workspace, or
the proposed container would result in recursive containment.NameDuplicationException
- If the container already has
an attribute with the name of this attribute.Attribute.getContainer()