thomas.deweese wrote:
> 
> Well this is just a way to get the root graphics node (root of the
> GVT tree) associated with the Canvas.  This is the same root graphics 
> node that you must have created to rasterize the document.
> 
>> my specific situation is, that i dont have a canvas, but just a readily
>> rasterized bufferedimage as i said above. (the reason for this is, that 
> the
>> image is actually used as an openGL texture.) still i would like to get 
> the
>> element that is below the mousecursor.
> 
>    If you were using the Transcoders to generate your buffered image then
> you will need to either subclass or 'copy and paste' the transcoder
> code so you can hold onto the BridgeContext and GVT tree.  Without the
> GVT tree you can't do anything that relies on geometry (like figuring out 
> what element is under a particular point), and the BridgeContext allows 
> you to map between the GVT tree and the DOM tree.
> 

thanks a lot! now i understand what this bridge is for. it links between the
GVT tree and the DOM tree, right?

also i could get some code running now, that find s a "shape" at a certain
position. but when i try to get the DOM-element of this shape it only finds
null.

GraphicsNode result = gvtRoot.nodeHitAt(p); // finds a shape                    
bridgeContext.getElement(result); // returns null

does that mean that there is no corresponding DOM element to that GVT
element?

thanks a lot for your help, thomas.deweese!

-- 
View this message in context: 
http://www.nabble.com/simulating-batik%27s-DOMMouseEvents-tp18468447p18485590.html
Sent from the Batik - Users mailing list archive at Nabble.com.


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

Reply via email to