The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » LWUIT

Thread: SVG info or examples?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Aug 24, 2008 5:46 AM by: abumami
abumami

Posts: 23
SVG info or examples?
Posted: Aug 24, 2008 2:19 AM
 
  Click to reply to this thread Reply

I was really glad to see that SVG support was added to LWUIT.

Where can I get more information on how to use SVG in a LWUIT project? (I couldn't find any info in the latest code drop.) Are there any examples? Does the support allow for full functionality such as SVG events?

Thanks, and keep up the good work.

chen
Re: SVG info or examples?
Posted: Aug 24, 2008 3:51 AM   in response to: abumami
  Click to reply to this thread Reply

Hi,
Check out SVGImage class, this class extends Image and allows you to get
the SVG Document element to preform manipulations on the resource.

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> I was really glad to see that SVG support was added to LWUIT.
>
> Where can I get more information on how to use SVG in a LWUIT project? (I couldn't find any info in the latest code drop.) Are there any examples? Does the support allow for full functionality such as SVG events?
>
> Thanks, and keep up the good work.
> [Message sent by forum member 'abumami' (abumami)]
>
> http://forums.java.net/jive/thread.jspa?messageID=295010
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net


abumami

Posts: 23
Re: SVG info or examples?
Posted: Aug 24, 2008 5:08 AM   in response to: chen
 
  Click to reply to this thread Reply

Thanks Chen - I saw this in the new javadoc, but it doesn't give me enough information.

For example, in a standard Netbeans j2me project, I can use the Visual Designer, create a menu object, drag and drop an SVG image into the menu object, and automatically have the event tags in the SVG parsed to create a full menu.

Is this now possible in LWUIT? If not, will this feature be added in the future?

Thanks.

> Hi,
> Check out SVGImage class, this class extends Image
> and allows you to get
> the SVG Document element to preform manipulations on
> the resource.
>
> Regards,
> Chen

chen
Re: SVG info or examples?
Posted: Aug 24, 2008 5:21 AM   in response to: abumami
  Click to reply to this thread Reply

Hi,
LWUIT SVG support is the ability to use a SVG resource as a LWUIT
image/animation, this allows you the full power of vector graphics
embedded in LWUIT drawing(similar in a way to what we have done with 3D).
If your use case is to create a full screen with SVG and to control the
events directly from the SVG dom tree, you probably shouldn't use LWUIT.

lwuit-users@mobileandembedded.org wrote:
> Thanks Chen - I saw this in the new javadoc, but it doesn't give me enough information.
>
> For example, in a standard Netbeans j2me project, I can use the Visual Designer, create a menu object, drag and drop an SVG image into the menu object, and automatically have the event tags in the SVG parsed to create a full menu.
>
> Is this now possible in LWUIT? If not, will this feature be added in the future?
>
No, we don't see the use cases to do that.

Regards,
Chen

> Thanks.
>
>
>> Hi,
>> Check out SVGImage class, this class extends Image
>> and allows you to get
>> the SVG Document element to preform manipulations on
>> the resource.
>>
>> Regards,
>> Chen
>>
> [Message sent by forum member 'abumami' (abumami)]
>
> http://forums.java.net/jive/thread.jspa?messageID=295018
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net


abumami

Posts: 23
Re: SVG info or examples?
Posted: Aug 24, 2008 5:46 AM   in response to: chen
 
  Click to reply to this thread Reply

Thanks Chen - that clears that up for me.

Although it seems that being able to use SVG (and events from the dom tree) together with the ability of LWUIT to address device fragmentation would be huge.

Just my 2 agarot (rounded up to 10 of course)

> Hi,
> LWUIT SVG support is the ability to use a SVG
> resource as a LWUIT
> image/animation, this allows you the full power of
> vector graphics
> embedded in LWUIT drawing(similar in a way to what we
> have done with 3D).
> If your use case is to create a full screen with SVG
> and to control the
> events directly from the SVG dom tree, you probably
> shouldn't use LWUIT.




 XML java.net RSS