From 6ba537ec897da9120a6105d6f4c5fc6aa48e7658 Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Wed, 29 Oct 2008 11:21:32 +0000 Subject: [PATCH] Renamed GenericGraphics2DImagePainter to a slightly more meaningful name of BatikGraphics2DImagePainter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@708877 13f79535-47bb-0310-9956-ffa450edef68 --- ...gePainter.java => BatikGraphics2DImagePainter.java} | 4 ++-- .../fop/image/loader/batik/ImageConverterSVG2G2D.java | 2 +- .../fop/render/afp/AFPImageGraphics2DFactory.java | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/java/org/apache/fop/image/loader/batik/{GenericGraphics2DImagePainter.java => BatikGraphics2DImagePainter.java} (92%) diff --git a/src/java/org/apache/fop/image/loader/batik/GenericGraphics2DImagePainter.java b/src/java/org/apache/fop/image/loader/batik/BatikGraphics2DImagePainter.java similarity index 92% rename from src/java/org/apache/fop/image/loader/batik/GenericGraphics2DImagePainter.java rename to src/java/org/apache/fop/image/loader/batik/BatikGraphics2DImagePainter.java index aa4d991b6..983033027 100644 --- a/src/java/org/apache/fop/image/loader/batik/GenericGraphics2DImagePainter.java +++ b/src/java/org/apache/fop/image/loader/batik/BatikGraphics2DImagePainter.java @@ -12,7 +12,7 @@ import org.apache.xmlgraphics.java2d.Graphics2DImagePainter; /** * A generic graphics 2D image painter implementation */ -public class GenericGraphics2DImagePainter implements Graphics2DImagePainter { +public class BatikGraphics2DImagePainter implements Graphics2DImagePainter { protected final ImageXMLDOM svg; protected final BridgeContext ctx; @@ -25,7 +25,7 @@ public class GenericGraphics2DImagePainter implements Graphics2DImagePainter { * @param ctx the bridge context * @param root the graphics node root */ - public GenericGraphics2DImagePainter(ImageXMLDOM svg, BridgeContext ctx, GraphicsNode root) { + public BatikGraphics2DImagePainter(ImageXMLDOM svg, BridgeContext ctx, GraphicsNode root) { this.svg = svg; this.ctx = ctx; this.root = root; diff --git a/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java b/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java index a2c0128c2..40dc600be 100644 --- a/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java +++ b/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java @@ -116,7 +116,7 @@ public class ImageConverterSVG2G2D extends AbstractImageConverter { */ protected Graphics2DImagePainter createPainter( final ImageXMLDOM svg, final BridgeContext ctx, final GraphicsNode root) { - return new GenericGraphics2DImagePainter(svg, ctx, root); + return new BatikGraphics2DImagePainter(svg, ctx, root); } /** {@inheritDoc} */ diff --git a/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java b/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java index 81d00bd10..da9a37b76 100644 --- a/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java +++ b/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java @@ -36,7 +36,7 @@ import org.apache.fop.afp.AFPState; import org.apache.fop.afp.AFPTextElementBridge; import org.apache.fop.afp.AFPTextHandler; import org.apache.fop.afp.AFPTextPainter; -import org.apache.fop.image.loader.batik.GenericGraphics2DImagePainter; +import org.apache.fop.image.loader.batik.BatikGraphics2DImagePainter; import org.apache.fop.render.RendererContext; import org.apache.fop.svg.SVGUserAgent; import org.apache.xmlgraphics.image.loader.impl.ImageGraphics2D; @@ -117,8 +117,8 @@ public class AFPImageGraphics2DFactory extends AFPDataObjectInfoFactory { // set painter ImageGraphics2D imageG2D = (ImageGraphics2D)rendererImageInfo.getImage(); - GenericGraphics2DImagePainter painter - = (GenericGraphics2DImagePainter)imageG2D.getGraphics2DImagePainter(); + BatikGraphics2DImagePainter painter + = (BatikGraphics2DImagePainter)imageG2D.getGraphics2DImagePainter(); painter = new AFPGraphics2DImagePainter(painter); imageG2D.setGraphics2DImagePainter(painter); graphicsObjectInfo.setPainter(painter); @@ -131,13 +131,13 @@ public class AFPImageGraphics2DFactory extends AFPDataObjectInfoFactory { return graphicsObjectInfo; } - private class AFPGraphics2DImagePainter extends GenericGraphics2DImagePainter { + private class AFPGraphics2DImagePainter extends BatikGraphics2DImagePainter { /** * Copy constructor * * @param painter a graphics 2D image painter */ - public AFPGraphics2DImagePainter(GenericGraphics2DImagePainter painter) { + public AFPGraphics2DImagePainter(BatikGraphics2DImagePainter painter) { super(painter.getImageXMLDOM(), painter.getBridgeContext(), painter.getRoot()); } -- 2.39.5