Hi Ernst,
"Ernst Müller" <[EMAIL PROTECTED]> wrote on 12/04/2006 09:07:27 AM:
> I still new to batik and svg and have a bit trouble with the ScrollPane
...
> first it took me as newbie a long time figuring out that a svgdocument
created
> with SVGGraphics2D does not seem to give the right bounding box neither
set a
> viewBox ... I understand that it does not set a vieBox but what should
be the
> problem with the BBox?
You can set the width/height on the SVGGraphics2D with:
SVGGraphics2D.setSVGCanvasSize(Dimension d);
> The next thing is that when I zoom in (via setRenderingTransformation in
> JSVGCanvas) the sliders doesn't seem set correctly only after I drag the
> vertical slider all the way down it works ... am I missing something
that I
> need to set/check again?
There was a problem in this area in the 1.6 release I think it's
fixed in SVN.
> And my last question, since the ScrollPane doesn't update during
dragging (to
> speed things up I guess?
Yes, rendering complex SVG's can take a long time. Since we
can't control this we use the last finished rendering until the
user decides on the new view.
> but I need that for my application), I thought I just
> add that behavior via SBListeners which call some kind of update
procedure
> but it seems that there is no way to add SBListerns ... am I really
supposed
> to derive a new class for that?
Probably, I don't really have a problem with adding get functions for
the SB instances, it just hasn't been needed to date.
> Any tips how to create that behavior?
This is very hard to do. Since the rendering is async you need
a fair amount of tracking logic so that the paintTransform and the
renderingTransform don't step on each other.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]