[kepler-dev] svg for my actor

Chad Berkley berkley at nceas.ucsb.edu
Tue May 5 14:47:16 PDT 2009


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


More information about the Kepler-dev mailing list