[kepler-users] Personal actor's icon...

Chad Berkley berkley at nceas.ucsb.edu
Tue Aug 19 09:18:25 PDT 2008


Hi Quentin,

In kepler, there is a different mechanism for assigning icons.  Look at 
the files 
kepler/configs/ptolemy/configs/kepler/uiSVGIconMappingsByClass.properties 
  and 
kepler/configs/ptolemy/configs/kepler/uiSVGIconMappingsByLSID.properties

You can assign the icon by either class or LSID.  Let me know if you 
have any problems getting it to work.

thanks,
chad

Quentin BEY wrote:
> Hi all, 
> 
> I'm facing a problem I can't solve. For all actors I create, I can't
> change the default icon they have (the green rectangular icon). I
> inserted the lines:
> 
> //----------------------------------------------------------
> // Icon is a stop sign.
> _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");
> //------------------------------------------------------------
> 
> as told in the tutorial concerning the creation of a Stop actor, but
> when I instantiate it with the Tools-Instantiate Component menu I only
> got the green rectangle. The actor works properly.
> 
> I also tried copying the code of an existing actor and compile then
> instantiate, it's the same.
> 
> Has anybody an idea?
> 
> Thanks in advance.
> 
> 
> 
> Quentin BEY -ONERA- France
> 
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users



More information about the Kepler-users mailing list