[kepler-dev] Setting _hideName in subclass of ptolemy.actor.lib.Stop

Edward A. Lee eal at eecs.berkeley.edu
Wed Aug 12 05:03:17 PDT 2009


Very mysterious... Seems to violate the laws of physics.
I guess I would need to see all the code to assess...

Edward


Michal Owsiak wrote:
> Hello all,
> 
> I have encountered following issue.
> 
> In ptolemy.actor.lib.Stop constructor there are following lines:
> 
> _attachText("_iconDescription", "<svg>\n"
>                 + "<polygon points=\"-8,-19 8,-19 19,-8 19,8 8,19 "
>                 + "-8,19 -19,8 -19,-8\" " + "style=\"fill:red\"/>\n"
>                 + "<text x=\"-15\" y=\"4\""
>                 + "style=\"font-size:11; fill:white;
> font-family:SansSerif\">"
>                 + "STOP</text>\n" + "</svg>\n");
> 
> // Hide the name because the name is in the icon.
> _hideName = new SingletonParameter(this, "_hideName");
> _hideName.setToken(BooleanToken.TRUE);
> _hideName.setVisibility(Settable.EXPERT);
> 
> 
> I have subclassed from ptolemy.actor.lib.Stop and I want to make actor's
> name visible. I am performing following:
> 
> _hideName.setToken(BooleanToken.FALSE);
> _hideName.setVisibility(Settable.FULL);
> 
> however, _hideName parameter is still set to true, while visibility mode
> is full. This means that:
> 
> _hideName.setVisibility(Settable.FULL);
> 
> works fine - visibility mode is changed, while
> 
> _hideName.setToken(BooleanToken.FALSE);
> 
> does not change _hideName parameter value. What am I doing wrong here?
> 
> Regards
> 
> Michal
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eal.vcf
Type: text/x-vcard
Size: 351 bytes
Desc: not available
URL: <http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20090812/66f7c6d5/attachment.vcf>


More information about the Kepler-dev mailing list