Hi HardCod3r,
hardc0d3r <[EMAIL PROTECTED]> wrote on 07/18/2007 09:10:30 AM:
> sir, how about when i want to zoom and focus to a portion of the canvas
when
> i only needed to and not on load? do i really have to subclass and
override?
To adjust the Canvas's view after the initial load just use
'Canvas.setRenderingTransform'. For an example of zoom and center
on an object on the canvas take a look at
batik.apps.svgbrowser.FindDialog.showSelectedGraphicsNode.
The code there zoom's and pans the document on a particular
text element in the document. With the exception of the
text selection code the zoom and pan code will work for any
graphicsNode (which corresponds roughly with a DOM graphics
Element).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]