1 18 package org.apache.batik.svggen; 19 20 import java.awt.geom.Rectangle2D ; 21 22 import org.apache.batik.test.AbstractTest; 23 import org.apache.batik.test.TestReport; 24 25 import org.apache.batik.dom.GenericDOMImplementation; 26 27 import org.w3c.dom.Document ; 28 import org.w3c.dom.DOMImplementation ; 29 30 36 public class DoubleString extends AbstractTest { 37 public TestReport runImpl() throws Exception { 38 DOMImplementation domImpl = 40 GenericDOMImplementation.getDOMImplementation(); 41 42 Document document = domImpl.createDocument(null, "svg", null); 44 45 SVGGraphics2D g = new SVGGraphics2D(document); 46 Rectangle2D r = new Rectangle2D.Float (0.5f, 0.5f, 2.33f, 2.33f); 47 g.fill(r); 48 49 return reportSuccess(); 50 } 51 } 52 | Popular Tags |