Hi Charles,

    You might also want to look at the standard SVG DOM.
Which includes a method 'getBBox()' that returns the bounding
box of the element in the element's user coordinate system.
If this is paired with 'getScreenCTM()' you can fairly easily calculate
the location on the screen of any element in the DOM (and these
are standard SVG as opposed to Batik specific).

"Charles Abreu" <[EMAIL PROTECTED]> wrote on 07/10/2006 05:13:27 PM:

> What I want to do is to zoom in and to center the SVGCanvas on to an 
arbitrary
> graphics element. Looking at the svg browser code, I saw a code fragment 
where
> the zooming and centering task is done for text search, but it works 
begining 
> from a selected GraphicsNode object. In that case, a GVTTreeWalker was 
used to
> walk down the tree looking for TextNode's whose text property match the 
user 
> entered string. In my case, the use will not provide any input. An 
internal 
> event in my system will trigger a search for an specific element in the 
DOM 
> tree and I need to highlight it when it is found. 
> 
> Can somebody help?
> 
> Thanks in advance.
> 
> Charles

> On 7/10/06, Charles Abreu <[EMAIL PROTECTED] > wrote:
> Hi,
> 
> How I obtain a GraphicsNode from an Element object? 
> 
> Thanks,
> 
> Charles
> 
> 


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

Reply via email to