BT

InfoQ Homepage News Lienzo 1.0: A Scene Graph API In Java For The HTML5 Canvas

Lienzo 1.0: A Scene Graph API In Java For The HTML5 Canvas

This item in japanese

This item in chinese

Bookmarks

Emitrom, a company providing custom enterprise software application services, has recently released Lienzo 1.0 GA under the Apache Licence. Lienzo is a GWT library that implements a structured graphic toolkit in Java using the HTML5 Canvas as a back end. Lienzo builds upon the existing Canvas support of GWT (see demo) by offering a more advanced Java API geared towards rich animations, games, image processing etc.

Lienzo 1.0 offers the following graphic functions

There is a live demo showing several examples (some animated as well) along with their source code.

The Canvas element of HTML 5 is typically scripted in JavaScript using a very low level set of methods that manage the GUI in immediate mode. The basic Java API offered by GWT is just a thin layer over the JavaScript API, so it is still low level for most Enterprise developers. Emitrom extends this basic API into a full Scene Graph managed in retained mode. This makes possible all the advanced features (such as animations) outlined above.

Lienzo can be extended to support other shapes apart from those already included. Emitrom also exposes the core Context2D Object that offers direct access to the low level methods of the HTML5 canvas. It is therefore possible to develop functionality that is not included in Lienzo by default or even easily port native JavaScript code from existing Canvas applications for those who need this capability.

Finally with the addition of extra libraries offered by Emitrom, Lienzo can also run on iOS, or on the desktop via Adobe Air, further enhancing the cross-platform development idea introduced by Flash4j.

For more information, see the User Manual and Javadocs. Commercial support options are also available.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Cool

    by Dimitry Oslov /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Nice bunch of products.

  • Re: Cool

    by Nurali Virani /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Yup .. Kool .. :)
    Use below link to see demo.
    emitrom-lienzo.appspot.com/

  • Re: Cool

    by Ivan L /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Source code tab is broken, the examples look very nice though, good work.

  • Re: Cool

    by David La Motta /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    We recently moved from svn to git, so we're in the process of updating the explorer's source tabs. We should have this resolved in the next couple of days.

    Also, 1.1 is right around the corner. You can either join Emitrom's G+ community (plus.google.com/communities/111441257302891144143) or follow us on Twitter @emitromtweets to get the latest announcements.

    Cheers.

  • Re: Cool

    by David La Motta /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    In case you didn't catch the announcement, Lienzo 1.1 is now available. We've got some new things in the API, and the explorer source now works.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.