xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tonny Kohar <to...@kiyut.com>
Subject Re: updating TransformHistory problem
Date Mon, 15 May 2006 09:28:20 GMT

On Mon, 2006-05-15 at 04:54 +0000, Selva wrote:
> svgCanvas.transformHistory.update(_svgCanvas.getRenderingTransform());
> _svgCanvas.previousTransformAction.update();
> _svgCanvas.nextTransformAction.update();
> but when i perform previousTransformAction and nextTransformAction, it's not 
> updating the positions.

Rather than called update(), call actionPerformed(evt) instead.
If you look at the source code, update() is only setting whether the
action will be enabled or not. The real action in on actionPerformed,
since it is a subclass of standard Java Action.

Tonny Kohar
SVG Graphics Editor

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message