[kepler-dev] svg for my actor

Chad Berkley berkley at nceas.ucsb.edu
Thu May 7 10:55:35 PDT 2009


Well, I was going to say that you could right click on the actor and 
configure it to change the entityId, but I forgot that we changed it so 
users couldn't edit the entityId in the GUI.  I think the only way 
you'll be able to do this right now is to create a new actor and put it 
in a kar file with it's own LSIDs then assign the icon from that (i.e. 
you won't be able to do it through the GUI).  Once bugzilla is back up, 
I'll enter a feature request to allow users to change icons easily. 
It's been on our minds forever, just has never been implemented.  Sorry 
it's such a hassle.

chad


Chris Weed wrote:
> forgot to CC this to the list....
> 
> Hi Chad,
> I don't see how to set the entityId in the composition GUI, but I see
> in the MoML file
> "urn:lsid:kepler-project.org:actor:449:1", which is the LSID for the
> CompositeActor,
> and another CompositeActor in my MoML file has the same LSID.
> I want these two CompositeActorS to have different icons.
> Can I just set these values to two different LSIDs, and is there a way
> to get/set
> the entityId from the GUI?
> 
> I am using the developer build.
> Chris
> 
> On Tue, May 5, 2009 at 5:47 PM, Chad Berkley <berkley at nceas.ucsb.edu> wrote:
>> Umm, it should work.  You just need to assign an LSID (using the entityId
>> property) to the composite, then use the uiSVNIconMappingsByLSID.properties
>> file.  I've never tried it though, so I won't say that it will actually
>> work.  I'm also not sure what priority the renderer uses.  That would be
>> important since the class for the composite will already have an icon
>> assigned to it in the other file, so hopefully the LSID one will take
>> priority and override the class one.
>>
>> chad
>>
>>
>> Chris Weed wrote:
>>> Also, is it possible to attach an icon to a composite actor?
>>> Chris
>>>
>>> On Mon, May 4, 2009 at 3:29 PM, Chad Berkley <berkley at nceas.ucsb.edu>
>>> wrote:
>>>> Hi Chris,
>>>>
>>>> Yeah, it's from the old system still.  this bug
>>>> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3948 addresses this
>>>> issue.  Hopefully I'll get started on that this week.  If not, probably
>>>> next
>>>> week.  Once the configuration systems are integrated and modularized,
>>>> modules should be able to make the changes they need. Until then, we
>>>> still
>>>> have to edit those files in common.
>>>>
>>>> chad
>>>>
>>>>
>>>> Chris Weed wrote:
>>>>> I looked at that file, and it looks like I need to edit it to assign my
>>>>> icon.
>>>>> Although, this doesn't seem very modular. Can I store the svg file and
>>>>> properties file in my module
>>>>> instead of in the common module?
>>>>> Chris
>>>>>
>>>>> On Mon, May 4, 2009 at 12:13 PM, Chad Berkley <berkley at nceas.ucsb.edu>
>>>>> wrote:
>>>>>> Hi Chris,
>>>>>>
>>>>>> In kepler, the icons are set by the Batik renderer, not by vergil, so
>>>>>> this
>>>>>> function no longer works.  If you want to set an icon for your actor in
>>>>>> Kepler, you can use the
>>>>>>
>>>>>> common/configs/ptolemy/configs/kepler/uiSVGIconMappingsByLSID.properties
>>>>>> or
>>>>>>
>>>>>> common/configs/ptolemy/configs/kepler/uiSVGIconMappingsByClass.properties
>>>>>> files.
>>>>>>
>>>>>> chad
>>>>>>
>>>>>> Chris Weed wrote:
>>>>>>> Hi,
>>>>>>> I noticed in some of the available actors there is a function like
>>>>>>> _attachText("_iconDescription",...)
>>>>>>> for adding an icon to an actor.
>>>>>>> I tried to add this to my actor, but when I instantiate the actor it
>>>>>>> is
>>>>>>> blank.
>>>>>>> I am wondering why this doesn't work, or if someone can point me to
>>>>>>> documentation on this.
>>>>>>> Chris
>>>>>>> _______________________________________________
>>>>>>> Kepler-dev mailing list
>>>>>>> Kepler-dev at kepler-project.org
>>>>>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev


More information about the Kepler-dev mailing list