Seb:

I forgot to add the information on what is "thisNode" in the tutotrial:
..
// thisNode represents the target of the event
SVGLocatable thisNode = (SVGLocatable)elt.getFirstChild();

SVGOMPoint pt = new SVGOMPoint(nowToX, nowToY);
SVGMatrix mat = thisNode.getScreenCTM(); // elem -> screen
...

I will add this to the tutorial,

Regards,

Andres.

On Jun 13, 2005, at 5:40 AM, grillot sebastien wrote:

hello,
I have a little probleme... i don't understand the "thisNode" in the
code below...

SVGOMPoint pt = new SVGOMPoint(nowToX, nowToY);
SVGMatrix mat = thisNode.getScreenCTM(); // elem -> screen
mat = mat.inverse(); // screen -> elem
initialDragPoint = (SVGOMPoint)pt.matrixTransform(mat);

Eclipse said : "thisNode cannot be resolved".
These code is taken from http://wiki.apache.org/xmlgraphics-batik/DragTutorial

Thanks a lot

Seb

--
Regist. Linux User #344952

/* Fuck me gently with a chainsaw... */
-- 2.0.38 /usr/src/linux/arch/sparc/kernel/ptrace.c

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


Reply via email to