So, i have something done, but i have to play with de coordinates ...
because i have no idea where he zooms in when i set the point2D on 200, 400
here is my example-snippet:
if(cmd.equals("Zoom")){
try {
AffineTransform at;
at = canvas.getViewBoxTransform();
if (at != null) {
at = at.createInverse();
Point2D p2d = at.transform(new
Point2D.Double(200.0, 400.0), null);
canvas.setRenderingTransform(at);
}
} catch (NoninvertibleTransformException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]