Hi Charles,
the SVGCanvas has an ActionMap where most of the interactors (i.e. the actions which are responsible for zooming/paning etc) are listed and you can add these Actions to your JButtons:
JButton btnMagPlus = new JButton();
btnMagPlus .addActionListener( canvas .getActionMap().get(SVGCanvas. ZOOM_IN_ACTION ));
So when you press the button, the canvas does zoom in.
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: Charles Abreu [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 25. April 2006 15:36
An: [email protected]
Betreff: JSVGCanvas
Hello!
I'm new to SVG and Batik and I'm trying to use the JSVGCanvas component inside my Swing application, but I couldn't find out how to manipulate (like zoomin gand rotating) the svg document visible inside the component. Can anyone help me with a tutorial or a code snnipet showing the basic steps involved?
thanks in advance
Charles
Dominik, in fact it is what I was looking for. Thank you!
On 4/25/06, Steiner, Dominik <[EMAIL PROTECTED]
> wrote:
- AW: JSVGCanvas Steiner, Dominik
- Re: JSVGCanvas Charles Abreu
