[kepler-dev] [Bug 5266] Two empty boxes inside Sinewave actor when in Reporting suite
bugzilla-daemon at ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Mon Oct 1 14:07:16 PDT 2012
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5266
--- Comment #11 from Sean Riddle <swriddle at gmail.com> ---
Adding _icon properties to the problem attributes allows the SVG attached to
the attributes to be attached to a ValueIcon. For instance, the property
'annotation' had properties '_iconDescription' and '_smallIconDescription',
which contain SVG definitions of the full-size icon and the icon displayed in
the library tree, respectively. These alone, though, will not cause a custom
icon to be displayed.
The following declaration is needed:
<property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
<property name="_color" class="ptolemy.actor.gui.ColorAttribute"
value="{1.0, 0.0, 0.0, 1.0}">
</property>
</property>
This specifies that the icon is going to be an instance of ValueIcon, and
ValueIcon presumably gets the definitions from _iconDescription and
_smallIconDescription and instantiates and displays the SVG appropriately.
This change has been sent to Christopher for review prior to commit.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20121001/d30a4d69/attachment.html>
More information about the Kepler-dev
mailing list