Hi:

Please define what do you mean by overlay.

Is it a Swing paint() layer on top of your SVG JSVGCanvas? Or is it another element of SVG on top of the first element?

For the dimensions of your SVG, the representation you see on screen is a conversion of the units you indicate in your SVG Doc (pts, inches, cm) and the viewBox attribute (if set).

The getDocumentSize method is available after the document is loaded, you you must make sure you are calling it in or after the documentLoadingCompleted event is triggered.

Andres.

On Feb 22, 2005, at 12:55 PM, Lasse Riis wrote:

Hello

I've been reading a lot, but I can't seem to gather a complete picture. So could someone present some example code, of say drawing a rectangle on an overlay?

I don't understand how the dimensions of the overlay relates to the dimensions of the SVG, and I don't even know what the dimensions of the SVG is (is it the pixels currently on screen?). I've been trying to use the getDocumentSize method on jsvgcanvas, inherited from jsvgcomponent, or is it? It gives a null-pointer exception....so somethings wrong I guess.

So could someone present some code of drawing a "small" rectangle in the center of an overlay on a JSVGCanvas?

Lasse Riis

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





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



Reply via email to