We finally got everything pretty much working, thanks largely to your
(Thomas DeWeese's) help.

We have one more issue that I am having trouble solving.  Here is the
setup:

(Since the document is so big, I cannot get the entire vertical
dimension on my screen so my example is dealing with the problem in the
horizontal dimension.  It seems likely that this would happen in the
vertical dimension as well, but I have not tried this with a different
document yet.)

o Display the document (745 X 1246) in a window with the ScrollCanvas.
o It is irrelevant if the document is entirely visible or not in either
dimension initially.
o Zoom in slightly. (Like 105% of what it was)
o Expand the visible area of the window (if necessary) to see the whole
document.
o The document is now chopped off on the right, seemingly being clipped
at the SVG document's unscaled size
o Now shrink the window, the scroll bars act appropriately and seem to
have the correct bounds
o Without scrolling, a return my window to its original size.  The
document is chopped as before
o Shrink the window again
o Scroll horizontally, The whole document can be viewed.
o Enlarge the window to see the whole document, and it is chopped off
again.
o Vertical scrolling works and as no affect on the chopped regions.


If I first zoom to 80% and then to 85%, it works correctly.  Not until I
get above 100% do I have the problem.  Where should I look to find and
fix this problem.  The scroll canvas appears to be doing everything
correctly as far as I can tell.

Also, as I was looking around I noticed this in GVTComponent:

    public void setGraphicsNode(GraphicsNode gn) {
        setGraphicsNode(gn, true);
        initialTransform = new AffineTransform();
        updateRenderingTransform();
        setRenderingTransform(initialTransform, true);
    }

Is this supposed to be:

    public void setGraphicsNode(GraphicsNode gn) {
        setGraphicsNode(gn, true);
        initialTransform = new AffineTransform();
        if (updateRenderingTransform())
         setRenderingTransform(initialTransform, true);
    }

Thanks,
Mark

 


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

Reply via email to