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: JSVGScrollPane's ScrollBar not updating properly
Date Thu, 14 Sep 2006 10:46:21 GMT

Hi Thomas,

I have done the following changes in JSVGScrollPane.java instead of 
"vertical.  setValues(ty, vpSize.height, 0, maxH)" and
"horizontal.setValues(tx, vpSize.width,  0, maxW)". Now horizontal and
vertical scroll bars are updating properly. But SVGCanvas is not updating
properly it means the zoom out changes are not updated in Canvas. It is
happening only when there is no shapes in the viewing transform. You can
reproduce this problem in the attached code in earlier mail.

but if we move the scroll bars, it is showing the SVG document properly. Can
you please explain what may be the problem?

        vertical.setMaximum(maxH);
        vertical.setMinimum(0);
        vertical.setValue(ty);
        vertical.getModel().setExtent(vpSize.height);

        horizontal.setMaximum(maxW);
        horizontal.setMinimum(0);
        horizontal.setValue(tx);
        horizontal.getModel().setExtent(vpSize.width);

Thanks in advance.

Regards,
Selva

-- 
View this message in context: http://www.nabble.com/JSVGScrollPane%27s-ScrollBar-not-updating-properly-tf2258957.html#a6303356
Sent from the Batik - Users forum at Nabble.com.


---------------------------------------------------------------------
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