Hi Dmitrij,

Dmitrij Sakara wrote:

I would like to brows a fragment of a SVG document on a separate JSVGCanvas in parallel with browsing a whole document in another JSVGCanvas. Is it possible without creation of an additional document?

The answer is, perhaps. There is a lower level viewing component called 'swing.gvt.JGVTComponent'. This doesn't have all the bells and whistles of the JSVGCanvas but it has the advantage of being able to display an arbitrary GraphicsNode from the GVT tree. So you should be able to use the BridgeContext to find the GraphicsNode associated with an Element in the SVG Document. You should then be able to construct a JGVTComponent with that GraphicsNode.

   I should note that this will not really work in the presence of
dynamic changes (The JGVTComponent won't get updated, and in
certain cases could get disconnected from the original document).

   Also this is totally untested so there may be a major unseen
problem (like something might require the GraphicsNode to be a
RootGraphicsNode (although I don't think so)).



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



Reply via email to