|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.vergil.icon.EditorIcon
ptolemy.vergil.icon.DynamicEditorIcon
ptolemy.vergil.icon.ShapeIcon
An icon that displays a specified java.awt.Shape.
| Red (johnr) |
| Yellow (eal) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.kernel.util.NamedObj |
NamedObj.ContainedObjectsIterator |
| Field Summary |
| Fields inherited from class ptolemy.vergil.icon.EditorIcon |
_containerToBe, _iconCache |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
ShapeIcon(NamedObj container,
java.lang.String name)
Create a new icon with the given name in the given container. |
|
ShapeIcon(NamedObj container,
java.lang.String name,
java.awt.Shape defaultShape)
Create a new icon with the given name in the given container with the given default shape. |
|
| Method Summary | |
java.lang.Object |
clone(Workspace workspace)
Clone the object into the specified workspace. |
Figure |
createBackgroundFigure()
Create a new default background figure, which is the shape set by setShape, if it has been called, or a small box if not. |
boolean |
isCentered()
Return whether the figure should be centered on its origin. |
void |
setCentered(boolean centered)
Specify whether the figure should be centered or not. |
void |
setFillColor(java.awt.Color fillColor)
Specify the fill color to use. |
void |
setLineColor(java.awt.Color lineColor)
Specify the line color to use. |
void |
setLineWidth(float lineWidth)
Specify the line width to use. |
void |
setShape(java.awt.Shape path)
Specify a path to display. |
| Methods inherited from class ptolemy.vergil.icon.DynamicEditorIcon |
_addLiveFigure, _liveFigureIterator, _trimLiveFigures |
| Methods inherited from class ptolemy.vergil.icon.EditorIcon |
_createDefaultBackgroundFigure, _recreateFigure, createFigure, createIcon, exportMoML, getContainerOrContainerToBe, setContainerToBe |
| Methods inherited from class ptolemy.kernel.util.Attribute |
_getContainedObject, _propagateExistence, getContainer, setContainer, setName |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ShapeIcon(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of the attribute.
IllegalActionException - If the attribute is not of an
acceptable class for the container.
NameDuplicationException - If the name coincides with
an attribute already in the container.
public ShapeIcon(NamedObj container,
java.lang.String name,
java.awt.Shape defaultShape)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of the attribute.defaultShape - The default shape.
IllegalActionException - If the attribute is not of an
acceptable class for the container.
NameDuplicationException - If the name coincides with
an attribute already in the container.| Method Detail |
public java.lang.Object clone(Workspace workspace)
throws java.lang.CloneNotSupportedException
clone in class DynamicEditorIconworkspace - The workspace for the cloned object.
java.lang.CloneNotSupportedException - Not thrown in this base classpublic Figure createBackgroundFigure()
createBackgroundFigure in class EditorIconpublic boolean isCentered()
public void setCentered(boolean centered)
centered - False to make the figure's origin at the
upper left.public void setFillColor(java.awt.Color fillColor)
fillColor - The fill color to use.public void setLineColor(java.awt.Color lineColor)
lineColor - The line color to use.public void setLineWidth(float lineWidth)
lineWidth - The line width to use.public void setShape(java.awt.Shape path)
path - The path to display.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||