Text in attributes not rendered properly
In a version of Kepler checked out from the svn tree, I did:
and that created an attribute.
However, the attribute does not have the text
If I instantiate a ptolemy.actor.gui.ModelRepaintController
in the same manner, then the same problem occurs.
Dragging in a Documentation attribute has the same problem
1. In Search Components, enter "Documentation"
2. In the Search Results, under Actors-2_0, drag the
Documentation attribute into the graph pane
3. Note that the text is not visible.
This occurs in the Kepler-2.0.0 Beta 1 installer and in
the devel tree.
#2 Updated by Christopher Brooks almost 10 years ago
ModelRepaintController is not in the Kepler Library, it should be added.
ShowTypes is in the Kepler Library, but renders as a wrench.
Maybe fixing the Kepler Instantiate Attribute is not so important.
Are there other SingletonAttributes that need to be added the library?
MonitorManager has two titles, I'll upload a screenshot.
#4 Updated by Christopher Brooks almost 10 years ago
Also, outreach/workflows/demos/Matlab/MatlabExpression.xml has an an
Attribute that is supposed to show the name of the author, but is a green
box. This attribute is under the red description text.
The MoML is:
<property name="annotation" class="ptolemy.kernel.util.Attribute">
<property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
<property name="_iconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
<text style="font-size:14; font-family:SansSerif; fill:darkgray" x="20" y="20">Author: Edward A. Lee</text>
<property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
<text style="font-size:14; font-family:SansSerif; fill:blue" x="20" y="20">-A-</text>
#5 Updated by Christopher Brooks almost 10 years ago
This screenshot is of outreach/workflows/demos/Matlab/MatlabExpression.xml
when run with
ant vergil -Dmodel=outreach/workflows/demos/Matlab/MatlabExpression.xml
I dragged the red text out of the way to show what the attribute that
says "Author Edward A. Lee" should look like.
In Kepler, this is a green rectangle.
#6 Updated by Sean Riddle almost 10 years ago
The text rendering issues with, for instance, MonitorManager, are fixed. A patch added to the ValueIcon class in Ptolemy (by Christopher Brooks per our discussion 26Sep) makes it so attributes can declare _hideName and have it be respected.
The icon issue particularly mentioned by Christopher Brooks in comment 5 is another instance of the issue of bug 5266 (missing _icon attribute). It has been fixed in r30797.