[kepler-dev] [kepler-users] Kepler-users Digest, Vol 39, Issue 1
Colin Enticott
Colin.Enticott at csse.monash.edu.au
Tue Aug 19 19:15:25 PDT 2008
Hi Kepler-devs,
I was just watching this thread and it brings up another question. How do
you assign an svg icon to an external actor in a kar file for users to
import? Having icon mappings in a central file suggests that there isn't a
way. Is that correct?
Regards,
Colin
---
Colin Enticott, Research Scientist, Ph: +61 03 9903 2215
Room H7.26, Level 7, Building H, Monash University Caulfield 3145, Australia
> -----Original Message-----
> From: kepler-users-bounces at ecoinformatics.org [mailto:kepler-users-
> bounces at ecoinformatics.org] On Behalf Of HSU JIMS
> Sent: Wednesday, 20 August 2008 11:25 AM
> To: kepler-users at ecoinformatics.org
> Subject: Re: [kepler-users] Kepler-users Digest, Vol 39, Issue 1
>
> Hi Quentin,
>
> By the way,if you want to create a svg icon for your custom actor, I
> recommend a lightweight svg tool Inkscape.
> It's a good tool.
>
> http://www.inkscape.org/
>
>
> Jim Hsu
>
>
> 2008/8/20 <kepler-users-request at ecoinformatics.org>:
> > Send Kepler-users mailing list submissions to
> > kepler-users at ecoinformatics.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
> >
> > or, via email, send a message with subject or body 'help' to
> > kepler-users-request at ecoinformatics.org
> >
> > You can reach the person managing the list at
> > kepler-users-owner at ecoinformatics.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Kepler-users digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Personal actor's icon... (Quentin BEY)
> > 2. Personal actor's icon... (Quentin BEY)
> > 3. Re: Personal actor's icon... (Chad Berkley)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 19 Aug 2008 14:07:39 +0200
> > From: Quentin BEY <quentin.bey at onera.fr>
> > Subject: [kepler-users] Personal actor's icon...
> > To: kepler-users at ecoinformatics.org
> > Message-ID: <1219147659.5970.10.camel at talence>
> > Content-Type: text/plain
> >
> > 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
> >
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Tue, 19 Aug 2008 14:21:51 +0200
> > From: Quentin BEY <quentin.bey at onera.fr>
> > Subject: [kepler-users] Personal actor's icon...
> > To: kepler-users at ecoinformatics.org
> > Message-ID: <1219148511.5970.11.camel at talence>
> > Content-Type: text/plain
> >
> > 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
> >
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Tue, 19 Aug 2008 09:18:25 -0700
> > From: Chad Berkley <berkley at nceas.ucsb.edu>
> > Subject: Re: [kepler-users] Personal actor's icon...
> > To: Quentin BEY <quentin.bey at onera.fr>
> > Cc: kepler-users at ecoinformatics.org
> > Message-ID: <48AAF251.7090703 at nceas.ucsb.edu>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > 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
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Kepler-users mailing list
> > Kepler-users at ecoinformatics.org
> > http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-
> users
> >
> >
> > End of Kepler-users Digest, Vol 39, Issue 1
> > *******************************************
> >
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
More information about the Kepler-dev
mailing list