O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Drawing on a canvas

HTML 5 is the buzz of the web now; it is here and ready to be used. Although not fully baked into GWT, especially with varying levels of support even from A grade browsers, we can draw custom and fun visualizations on the HTML 5 canvas element if the underlying browser supports it. The web page at http://gwtcanvasdemo.appspot.com has a good collection GWT-based canvas demos.

Although HTML 5 is not integrated into GXT components, in the future HTML 5 will become the standard and will be integrated into the major web frameworks. This recipe, although not using GXT components, will give you a taste of HTML 5 capabilities.

The GXT Chart API supports horizontal bar charts, but I'll show off the canvas element drawing capabilities ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required