Danny Browne wrote:

All images i display on the JSVGCanvas are being displayed in the center of
the canvas thus giving problems when calculating x and y coords of elements
to be added. any one any idea on how to Pack the canvas or set the image to
the top-left hand corner of the canvas? my canvas is placed inside a
JInternalFrame  which is inturn inside a JTabbedFrame. Does this make any
difference?

If I understand correctly, this is normally done by subclassing the JSVGCanvas and overriding the 'setMySize' method to call 'pack()' you can look at the implementation of batik.apps.svgbrowser.JSVGViewFrame to see how this is done for squiggle.




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to