<html>
<head>
<base href="http://bugzilla.ecoinformatics.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - Two empty boxes inside Sinewave actor when in Reporting suite"
href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5266#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - Two empty boxes inside Sinewave actor when in Reporting suite"
href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5266">bug 5266</a>
from <span class="vcard"><a class="email" href="mailto:swriddle@gmail.com" title="Sean Riddle <swriddle@gmail.com>"> <span class="fn">Sean Riddle</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>