]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed commented code.
authorAdrian Cumiskey <acumiskey@apache.org>
Wed, 23 Jul 2008 12:23:59 +0000 (12:23 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Wed, 23 Jul 2008 12:23:59 +0000 (12:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@679080 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java

index c8a20c5feb82dc47b25d4ffaeb8846b47f6e89e0..320e0e6be24e8f11e65e05f03cb6f54ef07cdf2d 100644 (file)
@@ -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)
     }
 }