From: Adrian Cumiskey Date: Wed, 23 Jul 2008 12:23:59 +0000 (+0000) Subject: Removed commented code. X-Git-Tag: fop-1_0~376^2~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3db783d68296cc21aa66b7e1c7900b4f8918371b;p=xmlgraphics-fop.git Removed commented code. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@679080 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java b/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java index c8a20c5fe..320e0e6be 100644 --- a/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java +++ b/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java @@ -76,32 +76,5 @@ public class AFPGraphics2DAdapter extends AbstractGraphics2DAdapter { Rectangle2D area = new Rectangle2D.Double(0.0, 0.0, imw, imh); painter.paint(graphics, area); } - -// RendererContext.RendererContextWrapper wrappedContext -// = new RendererContext.RendererContextWrapper(context); -//AFPRenderer renderer = (AFPRenderer)context.getRenderer(); -//Boolean grayObj = (Boolean)context.getProperty(AFPRendererContextConstants.AFP_GRAYSCALE); -//boolean gray = (grayObj != null ? grayObj.booleanValue() : false); -// -//FOUserAgent userAgent = context.getUserAgent(); -// -////Paint to a BufferedImage -//int resolution = (int)Math.round(userAgent.getTargetResolution()); -//BufferedImage bi -// = paintToBufferedImage(painter, wrappedContext, resolution, gray, false); -// -//ImageManager manager = userAgent.getFactory().getImageManager(); -//ImageSessionContext sessionContext = userAgent.getImageSessionContext(); -//AFPState state = (AFPState)context.getProperty(AFPRendererContextConstants.AFP_STATE); -//String uri = state.getImageUri(); -//try { -// ImageInfo info = manager.getImageInfo(uri, sessionContext); -// java.util.Map foreignAttributes = null; -// renderer.drawBufferedImage(info, bi, resolution, x, y, width, height, foreignAttributes); -//} catch (ImageException e) { -// log.error(e); -//} - -// painter.paint(g2d, area) } }