Hello,
Thanks to Tonny and the BootSvgAndCssDom page on the
wiki, I have solved my problem.
Here is the solution:
UserAgent userAgent = new UserAgentAdapter();
DocumentLoader loader = new DocumentLoader(userAgent);
BridgeContext context = new BridgeContext(
userAgent, loader);
context.setDynamicState(BridgeContext.DYNAMIC);
GVTBuilder builder = new GVTBuilder();
GraphicsNode rootGraphicsNode = builder.build(
context, document);
GraphicsNode graphicsNode =
rootGraphicsNode.nodeHitAt(
new Point2D.Float(x, y));
if( graphicsNode!=null ) {
Element element =
context.getElement(graphicsNode);
(...)
}
Thanks a lot for your help,
Thierry
Take a look at my blog:
http://jroller.com/page/Templth/
(old: http://templth.blogspot.com/)
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]