Hi All,

I would have thought that this would be a FAQ, but apparently not. So here is the question: How do you set the "overflow" attribute or property to "visible" on a Document?

The reason I want to do this is because squiggle is acting as if the area of my drawing that does not fit in the initial viewport does not exist. Fortunately, I've learned from this list that setting "overflow" to "visible" will work around this.

I've included the example code I'm using.

Thanks for any help,
Rick


      // Get a DOMImplementation
       DOMImplementation domImpl =
           GenericDOMImplementation.getDOMImplementation();

       // Create an instance of org.w3c.dom.Document
       Document document = domImpl.createDocument(null, "svg", null);

       // Create an instance of the SVG Generator
       SVGGraphics2D svgGenerator = new SVGGraphics2D(document);

       // Ask the test to render into the SVG Graphics2D implementation
       TestSVGGen test = new TestSVGGen();
       test.paint(svgGenerator);

       // Finally, stream out SVG to the standard output using UTF-8
       // character to byte encoding
       boolean useCSS = true; // we want to use CSS style attribute
       Writer out = new OutputStreamWriter(System.out, "UTF-8");
       svgGenerator.stream(out, useCSS);



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

Reply via email to