GWT-graphics: The goal of the GWT Graphics library is to provide a consistent cross-browser vector graphics library for Google Web Toolkit<http://code.google.com/webtoolkit/>. GWT Graphics uses SVG and VML for creating graphics.
GWTCanvas Provides cross Browser Vector Graphics support in the spirit of the Javascript canvas element API. * * *You are comparing apples and oranges.* * * *The GWTCanvas wrapps the canvas tag (HTML 5) which is a rasterized approach to grahics, the GWTGraphics on the other hand uses the SVG/VML languages to make your graphics.* * * *In SVG is very easy to make event handlers (I don't know if VML is easy too) and SVG can support all of your simple graphics (even the complex graphics can be made checkout Inkscape http://www.inkscape.org/).* * * *The GWTCanvas is much more lower level (you draw lines, paths, arcs) than SVG/VML it's fully based on javascript (or in this case java code). But using GWTCanvas gives you pixel level of control something that was only possible with flash/siverlight.* * * *I Would go with GWTCanvas because it gives much more control but handling events will be much harder.* * * *Take a look on bespin from mozilla http://mozillalabs.com/bespin/ to see some of the capabilities of Canvas + HTML 5. * * * *Important!! Bespin is written in pure javascript and don't use GWT.* On Thu, Jul 29, 2010 at 1:23 PM, BrianP <[email protected]> wrote: > I'm looking for a library with (what seems like) basic drawing > capabilities: > > - drawing circles, rectangles, and lines between them (like a family > tree) > - text notations on these objects; not exactly ON them, but near them > - ability to fill partials on the circles and rectangles, mostly > filling a quadrant at a time, possibly >1 quadrant, with different > colors; also possibly with small shapes, such as a circle or square > within the quadrant, but only half the size of the quadrant; I guess > for circles this might be some kind of filled arc > - event handlers (mostly mouse events) on these objects; hopefully > also context menus, such as right-clicking on a circle to bring up a > menu of actions > > I don't really need things to scale, I don't think. I haven't done > anything with SVG before, just simple drawing. I'm not sure how these > widgets would interact with other gwt widgets, for example, I suppose > the context menus could be done with regular gwt widgets. > > So far I've only looked over the sites and docs for each of the > projects but haven't tried them out yet. GWTCanvas seems more > 'official' since its in the incubator. But it's hard to tell how much > activity is on it since its wrapped up with the other projects there. > The docs seem pretty sparse, although the demo source is potentially > promising, but I haven't looked at that yet either. I don't see any > way to draw text with it. Only one class for all its functionality > seems a bit odd. > > gwt-graphics looks a little more robust and active, although only 1 > developer makes me a little nervous. > > Thanks, I'd appreciate any input, thoughts, etc. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- André Moraes Analista de Desenvolvimento de Sistemas [email protected] http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
