|
List Info
Thread: AW: JSVGCanvas
|
|
| AW: JSVGCanvas |

|
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.
Von: Charles Abreu
[mailto:charlesabreu gmail.com]
Gesendet: Dienstag, 25. April 2006
15:36
An: batik-users xmlgraphics.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 |

|
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.Steiner gigatronik.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.
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 |

|
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.Steiner gigatronik.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.
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 |

|
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.Steiner gigatronik.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.
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 |

|
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.Steiner gigatronik.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.
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 |

|
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.Steiner gigatronik.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.
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]
|
|