If I have a JSVGCanvas within a JSVGScroll pane does the document state have to be set to ALWAYS_STATIC? If I do the following:
JPanel panel = new JPanel(new BorderLayout()); JSVGCanvas canvas = new JSVGCanvas(); JSVGScrollPane scrollPane = new JSVGScrollPane(canvas); canvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); canvas.setURI(someURI); panel.add(scrollPane, BorderLayout.CENTER);
Nothing is drawn in the JFrame that the panel is added to, if I comment out the fourth line it is drawn and scrolls just fine. Is there a way to get ALWAYS_DYNAMIC documents to scroll within a JSVGScrollPane?
Secondly, what is the relationship between the SVG viewport, SVG viewBox attribute, and the size of the JSVGCanvas? How are things different (if at all) when the JSVGCanvas is placed inside a JSVGScrollPane? What I'd like to be able to do is load a SVG document into a JSVGCanvas within a JSVGScrollPane with the SVG document set to display at a preset size, rather than automatically resizing to fit the size of the JSVGCanvas. I need to set the document state to ALWAYS_DYNAMIC so that I can dynamically modify the "display" attribute of several elements at runtime.
Any help is appreciated, please let me know if you need any more information.
Thanks, Steven Huey
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]