I have some code that implements a scrollable JSVGCanvas.
It was done for a project that is available on sourceforge
(jdip.sourceforge.net) and the 2 classes that implement
the scrollable JSVGCanvas are:
dip.gui.map.JSVGScrollCanvas.java
and
dip.gui.map.JSVGViewport.java
if you have trouble getting these from CVS, I can send them to you
(should be much less than 10K zipped)
usage examples are included in the javadocs.
It scrolls 'correctly' in that when the scroll bars are dragged (or when
the shift-mouse button drag occurs) an appropriate AffineTransform is
created. Zoom/Pan is fully supported. Minimum and Maximum Zoom levels
may be specified.
It generally works pretty well.
Zach
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- AW: Using JSVGCanvas within a JScrollPane Christian Enklaar
- Zach Del
