📜 ⬆️ ⬇️

We draw vector graphics in the browser (SVG / VML using Google Web Toolkit + Dojo GFX)

svg / vml demo on gwt + dojo
We developed several test projects using vector graphics in the interface, and after requests to share our development experience, we wrote an example for study. In fact, this is very simple, and as an example, we offer a small demo of documented code developed on GWT using the Dojo library for working with SVG (VML) graphics. Works in most browsers, development is almost exclusively in Java.

To get started, check out the demo itself: gwt.org.ua/demos/gwt-dojo-drawdemo/DojoSimpleDemo.html

In the source code you will find:
- connect dojo.js;
- create gfx surface on the page;
- base classes for working with DojoX entities (gfx, shape, color, stroke);
- an example of a wrapper for a visual object circle;
- comments to classes and their members;
- and, in fact, an example of the use of the developed classes is the animation of color rings.

If interested, download the project archive for Eclipse. To work correctly with a project under Eclipse, you need to set the GWT_HOME variable (we use it for team work ).
')
Cross-post from our GWT blog: gwt.org.ua/ru/blog/2008/04/03/gwt-dojo-draw-demo

Source: https://habr.com/ru/post/22970/


All Articles