[kepler-dev] Setting _hideName in subclass of ptolemy.actor.lib.Stop
Michal Owsiak
michalo at man.poznan.pl
Wed Aug 12 03:26:10 PDT 2009
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
--
Michal Owsiak <michalo at man.poznan.pl>
Poznan Supercomputing and Networking Center
ul. Noskowskiego 10, 61-704 Poznan, POLAND
http://www.man.poznan.pl
More information about the Kepler-dev
mailing list