xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Selva <selvakumar_...@yahoo.co.in>
Subject Re: updating TransformHistory problem
Date Thu, 04 May 2006 10:19:58 GMT
Hi Thomas,

Sorry for the mistake i have done in earlier mail thomas. Actually i want 
both 'undo/redo' cases. 

1. want 'undo/redo' moves of your group with lines? 
2. want 'undo/redo' moves of the canvas (whole canvas pan)? 

To achieve this, i have added GVTTreeRendererListener for my SVGCanvas. While 
doing zoom in,zoom out and moving group elements , it's not executing  
RenderingTransform's gvtRenderingCompleted(). Why it's not executing 
RenderingCompleted even GVTTreeRendererListener added??

svgCanvas.addGVTTreeRendererListener(new GVTTreeRendererAdapter() {

    public void gvtRenderingPrepare(GVTTreeRendererEvent e) {
       System.out.println("Renderer Started...");
    }
    public void gvtRenderingCompleted(GVTTreeRendererEvent e) {
       System.out.println("Renderer Completed...");

       transformHistory.update(svgCanvas.getRenderingTransform());
       previousTransformAction.update();
       nextTransformAction.update();
    }
});

Thanks,
Selva




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


Mime
View raw message