Hi Steiner,

Steiner, Dominik wrote:

I’m just wondering if there is a good way of implementing the MVC pattern in Batik? I was fiddling with it the last few days and e.g. tried to move the svgdocument which I think is the model out of the canvas into a layer model. But this didn’t work.

    I'm not sure I follow you.  There are different ways to
partition the universe so I'm unsure what you are trying to do.
So to Batik the SVG document is essentially the Model the View
is the GVT tree we use for rendering and the Controller is the
Bridge (it keeps the view in sync with the model).

    This of course shouldn't impact most users of the toolkit, they
just play with the model and things happen, so I suspect that this
isn't really what you are talking about.  Also I don't understand
what you mean by a 'layer' model....

So I’m wondering if I’m just confused and trying to do the impossible or if someone has practical design hints for batik in general and a svg draw program in special.

    Well the simplest way to do a draw program is to simply
add elements to the Canvas.  The interactors/overlays are good
to maintain very high interactive performance while the user
draws or drags elements around (typical move a proxy type stuff).

    If you are encounter other issues I might be able to make
suggestions but I don't know where to go from here.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to