]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Cleanup.
authorAdrian Cumiskey <acumiskey@apache.org>
Tue, 21 Oct 2008 09:23:27 +0000 (09:23 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Tue, 21 Oct 2008 09:23:27 +0000 (09:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@706559 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/AbstractGenericSVGHandler.java
src/java/org/apache/fop/render/afp/AFPResourceManager.java

index 17b2b9d36b3bdbdfe2440b6e476579f5c3242044..0d6bf9be974741c081827562becd3721e1b09ae8 100644 (file)
@@ -26,23 +26,18 @@ import java.awt.geom.AffineTransform;
 import java.awt.geom.Rectangle2D;
 import java.io.IOException;
 
-import org.w3c.dom.Document;
-
 import org.apache.batik.bridge.BridgeContext;
 import org.apache.batik.bridge.GVTBuilder;
 import org.apache.batik.dom.AbstractDocument;
 import org.apache.batik.dom.svg.SVGDOMImplementation;
 import org.apache.batik.gvt.GraphicsNode;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import org.apache.xmlgraphics.java2d.Graphics2DImagePainter;
-import org.apache.xmlgraphics.util.QName;
-
 import org.apache.fop.fo.extensions.ExtensionElementMapping;
 import org.apache.fop.render.RendererContext.RendererContextWrapper;
 import org.apache.fop.svg.SVGEventProducer;
 import org.apache.fop.svg.SVGUserAgent;
+import org.apache.xmlgraphics.java2d.Graphics2DImagePainter;
+import org.apache.xmlgraphics.util.QName;
+import org.w3c.dom.Document;
 
 /**
  * Generic XML handler for SVG. Uses Apache Batik for SVG processing and simply paints to
index 58f65524da8adccf2374381c113f737ea3c44436..6acc2419ccb41838efa62f010fe25eb63b46f09d 100644 (file)
@@ -78,9 +78,9 @@ public class AFPResourceManager {
     }
 
     /**
-     * Returns the AFPDocumentStream
+     * Returns the AFP DataStream
      *
-     * @return the AFPDocumentStream
+     * @return the AFP DataStream
      */
     public DataStream getDataStream() {
         return this.dataStream;
@@ -136,7 +136,8 @@ public class AFPResourceManager {
                 AFPImageObjectInfo imageObjectInfo = (AFPImageObjectInfo)dataObjectInfo;
                 namedObj = dataObjectFactory.createImage(imageObjectInfo);
             } else if (dataObjectInfo instanceof AFPGraphicsObjectInfo) {
-                namedObj = dataObjectFactory.createGraphic((AFPGraphicsObjectInfo)dataObjectInfo);
+                AFPGraphicsObjectInfo graphicsObjectInfo = (AFPGraphicsObjectInfo)dataObjectInfo;
+                namedObj = dataObjectFactory.createGraphic(graphicsObjectInfo);
             } else {
                 // natively embedded object
                 namedObj = dataObjectFactory.createObjectContainer(dataObjectInfo);