« Return to Thread: resizing my frame and rendering transform!

Re: resizing my frame and rendering transform!

by Mathieu Pedrero-2 :: Rate this Message:

Reply to Author | View in Thread

Hi!

I found what is the root of my problem: the viewbox attribute (wich I didn't knew until yesterday... I'm a beginner in svg...)!

The problem is that i need to kwow the exact position of my mouse in the SVGDocument system coordinates! Until today, my method was to take the coordinates of the mouse in the jsvgCanvas and to apply to these the rendering tranform (it works pretty much with svg documents without the viewbox attibute defined).

Is there a method of batik which could help me to get theese coodinate?
Do I have to deal with the "viewbox rendering transform" (wich isn't a part of the classi rendering transform and wich i don't know where it's hidden in the Batik API...) manually?

Thank you for your help!

--
Mathieu Pedrero

2009/6/30 Mathieu Pedrero <mathieu.pedrero@...>
Hello everybody!

I just noticed out something strange about the JSVGCanvas component: I added a JSVGCanvas to a frame, and then I added a small svg document to this canvas.

And When i resize my frame, the svg picture comes bigger and bigger! But the rendering transform doesn't change at all (I control it by the getRenderingTransform method)! I looks strange to me because i thought this automatic resizement of my picture was a kind of zoom action.

The problem, so, is that i need to keep to know the "real" rendering transform of the picture at screen (even with the values of transform due to frame resizement, and not only actions of the mouse interactors of the canvas).

Can you help me please?

Thanks a lot!

 « Return to Thread: resizing my frame and rendering transform!