List Info

Thread: AW: JSVGCanvas




AW: JSVGCanvas
user name
2006-04-25 13:55:10

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

gigatronik.com">mailto:dominik.steinergigatronik.com

www.gigatronik.com

 


Von: Charles Abreu [mailto:charlesabreugmail.com]
Gesendet: Dienstag, 25. April 2006 15:36
An: batik-usersxmlgraphics.apache.org
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

JSVGCanvas
user name
2006-04-25 14:19:57
Dominik, in fact it is what I was looking for. Thank you!

On 4/25/06, Steiner, Dominik <gigatronik.com">Dominik.Steinergigatronik.com > wrote:

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

gigatronik.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mailto:dominik.steinergigatronik.com

www.gigatronik.com

 

 

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


JSVGCanvas
user name
2006-04-25 14:19:57
Dominik, in fact it is what I was looking for. Thank you!

On 4/25/06, Steiner, Dominik <gigatronik.com">Dominik.Steinergigatronik.com > wrote:

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

gigatronik.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mailto:dominik.steinergigatronik.com

www.gigatronik.com

 

 

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


JSVGCanvas
user name
2006-04-25 14:19:57
Dominik, in fact it is what I was looking for. Thank you!

On 4/25/06, Steiner, Dominik <gigatronik.com">Dominik.Steinergigatronik.com > wrote:

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

gigatronik.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mailto:dominik.steinergigatronik.com

www.gigatronik.com

 

 

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


JSVGCanvas
user name
2006-04-25 14:19:57
Dominik, in fact it is what I was looking for. Thank you!

On 4/25/06, Steiner, Dominik <gigatronik.com">Dominik.Steinergigatronik.com > wrote:

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

gigatronik.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mailto:dominik.steinergigatronik.com

www.gigatronik.com

 

 

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


JSVGCanvas
user name
2006-04-25 14:19:57
Dominik, in fact it is what I was looking for. Thank you!

On 4/25/06, Steiner, Dominik <gigatronik.com">Dominik.Steinergigatronik.com > wrote:

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

gigatronik.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mailto:dominik.steinergigatronik.com

www.gigatronik.com

 

 

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


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )