You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Michael Gale <mi...@bitflash.com> on 2002/03/14 16:34:42 UTC
Resizing the view port (cont'd)
Perhaps I should be more specific:
I have extended the class BridgeContext, so that the function
setDocumentSize() becomes accessible to my components. I calculated the new
document size by calling the function JSVGCanvas.getBounds(), which returns
a rectangle describing the new dimensions of the document (-20 -20 220 220),
or the maximum extent of the shapes within the document. The problem I am
having arises when I attempt to get the canvas to show the shapes outside
of the view port. Of course, they can be seen by panning the document, but
I would like to see them when the document is rendered for the first time.
It should also be mentioned that I am not modifying the SVG/XML DOM in any
way. Instead, I am working on the GVT level, and adding/changing the nodes
from that point.
So, this e-mail boils down to one question: can I see the shapes that are
outside the view port? Could someone point me to a function I need to call,
or class member I need to modify?
P.S. - On an unrelated note: I sincerely disagree with the comments sent by
Justin Couch. I am amazed at the level of design within the Batik engine,
and am more than aware of the monumental effort it takes to create such
software.
Thank you,
Michael
-----Original Message-----
From: Michael Gale [mailto:michael.gale@bitflash.com]
Sent: Wednesday, March 13, 2002 6:00 PM
To: 'Batik Users'
Subject: Resizing the viewport
Hi,
Suppose an SVG file I created has the following attributes and shapes:
<svg width="200" height="200" style="overflow:visible" >
<rect x="-20" y="-20" width="220" height="220" style="fill:none;
stroke:black" />
</svg>
How can I resize Batik's viewport using the GVT so that I can see the
rectangle?
Thanks for any help you can provide,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org