I'm not gonna lie to you, if you want something that can DRAW that stuff in
the web browser, it's gonna be a lot of work. Your only real choice is to
use the gwt incubator canvas, create classes for every kind of thing you
want to draw, including connectors and line-routing mechanisms. Unless you
already did most of that work yourself, this is gonna be a real pain. The
first thing you'll need to do is write your own screen-refresh functions,
cos canvas does NOT handle graphics objects, it just takes drawing commands
and spits them all on the page. IF you are using this internally and can
control browser-use, I'd recommend doing this in SVG. There's VML ports to
Win, but SVG in Firefox and especially Opera can make the job of receiving
user events MUCH easier. If you use canvas, you've got to cover the actual
drawn-areas with transparent event-listening elements; in SVG, your
drawn-areas ARE elements, and they are only rectangles if you tell them not
to be polyhedrons.
With svg, you'll need to implement every single one of your diagrams blocks
as a widget that builds itself from xml / svg using
document.createElementNS, and uses the proper get/setAttributeNS functions.
THEN, you'll need to worry about connections, and I don't know whether you
want to route the lines yourself or try an auto-route function, but if you
did, I'd recommend making the block placement with a low resolution {7 pixel
grid}, and the lines with a higher resolution {1px grid}. This would make a
single grid unit between blocks would leave enough space to route 5 0.5px
lines between it without boundary clash.
The gwt DOM class will be rather buggy for svg purposes, so you'll need
custom native functions for this. I recommend
http://google.ca?q=gwt+svgfor some of the partial Svg libraries out
there. I wish I had the time to
make said Svg gallery, but I need IE support to eat, so check back in a few
months, and I might be able to give you better advice.
--
"He whose desires are drawn toward knowledge in every form will be absorbed
in the pleasures of the soul, and will hardly feel bodily pleasure --I mean,
if he be a true philosopher and not a sham one." - Plato
"Wise Words Woven With Will Wakes Worlds" - Alyxandor Artistocles
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---