|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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.TableIcon
public class TableIcon
An icon that displays the value of a variable of the container in a table. The attribute is assumed to be an instance of Variable, and its name is given by the parameter variableName. Its value must be an array of records. A subset of the fields in the records given by the fields parameter is displayed in the icon.
Red (johnr) |
Yellow (eal) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary | |
---|---|
protected static double |
_HORIZONTAL_PADDING
The amount of padding to use around the edges. |
protected static java.awt.Font |
_labelFont
The font used. |
protected static double |
_VERTICAL_PADDING
The amount of padding to use around the edges. |
ColorAttribute |
boxColor
Color of the box. |
StringParameter |
colorKey
A column name to use as a color key. |
Parameter |
fields
The fields to display in the table. |
Parameter |
maxRows
The maximum number of rows to display. |
StringParameter |
variableName
The name of the variable in the container whose value should be displayed in the icon. |
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, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary | |
---|---|
TableIcon(NamedObj container,
java.lang.String name)
Create a new icon with the given name in the given container. |
Method Summary | |
---|---|
private LabelFigure |
_labelFigure(RecordToken row,
java.lang.String column)
Return a label figure for the specified token. |
private java.awt.Color |
_uniqueColor(java.lang.Object object)
|
Figure |
createBackgroundFigure()
Create a new background figure. |
Methods inherited from class ptolemy.vergil.icon.DynamicEditorIcon |
---|
_addLiveFigure, _liveFigureIterator, _trimLiveFigures, clone |
Methods inherited from class ptolemy.vergil.icon.EditorIcon |
---|
_createDefaultBackgroundFigure, _isPropertySet, _recreateFigure, createFigure, createIcon, getContainerOrContainerToBe, setContainerToBe |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ColorAttribute boxColor
public StringParameter colorKey
public Parameter fields
public Parameter maxRows
public StringParameter variableName
protected static final java.awt.Font _labelFont
protected static final double _HORIZONTAL_PADDING
protected static final double _VERTICAL_PADDING
Constructor Detail |
---|
public TableIcon(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.Method Detail |
---|
public Figure createBackgroundFigure()
createBackgroundFigure
in class EditorIcon
private LabelFigure _labelFigure(RecordToken row, java.lang.String column)
row
- The row.column
- The column.
private java.awt.Color _uniqueColor(java.lang.Object object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |