|
Hi Philipp, I’m not sure about
the JSVGScrollPane issue, but I had a similar request regarding the zooming
problem (having elements in the svg with absolute sizes) you mentioned. And I had to do it by
hand. So in the action listener of the zoom button I wrote a method which is ‘counter
zooming’ the elements I don’t want to be zoomed. That’s not
to difficult, but I had to do it by hand. Basically you have to go through your
elements you don’t want to be zoomed and set the transform=”scale(formerscale
* 1/zoomButtonScaleFaktor)”. I hope this helps. Good luck. Dominik Steiner Dipl-Ing. Informationstechnik (BA) GIGATRONIK Gesellschaft für Automobil- elektronikentwicklung mbH Taunusstr. 21 80807 München Telefon +49 (0) 89 / 353 96 80-70 Telefax +49 (0) 89 / 353 96 80-99 Von: philip zuniga
[mailto:[EMAIL PROTECTED] Hello there, A few days ago, I asked how I would be able to set the value of the
scroll to a certain value, and Thomas (the ever dependeble one), told me that I
should use the affine transform of the canvas, so, I added the following codes,
(x is the
value i want for the canvas) AffineTransform
at = canvas.getRenderingTransform(); and,
ofcourse, what happened is that my canvas got translated x units, but the
scroll remained in its position. How would I make the horzontal scroll to move
to the value x? And
another one, my Boss, wants me to create a functionality where I would zoom the
JSVGCanvas ( I also use the process similar above), but he want me to keep some
of the SVG items in the canvas to remain static (not affected by zooming),
is this possible? Thanks a
lot for your replies Philip
Zuniga |
- AW: Some questions on the JSVGScrollPane Steiner, Dominik
- AW: Some questions on the JSVGScrollPane Steiner, Dominik
