fop 0.94

org.apache.fop.render
Class AbstractGraphics2DAdapter

java.lang.Object
  extended by org.apache.fop.render.AbstractGraphics2DAdapter
All Implemented Interfaces:
Graphics2DAdapter
Direct Known Subclasses:
AFPGraphics2DAdapter, PCLGraphics2DAdapter, PDFGraphics2DAdapter

public abstract class AbstractGraphics2DAdapter
extends java.lang.Object
implements Graphics2DAdapter

Graphics2DAdapter implementation for PCL and HP GL/2.


Constructor Summary
AbstractGraphics2DAdapter()
           
 
Method Summary
protected  java.awt.image.BufferedImage paintToBufferedImage(Graphics2DImagePainter painter, RendererContext.RendererContextWrapper context, int resolution, boolean gray, boolean withAlpha)
          Paints the image to a BufferedImage and returns that.
protected  void setRenderingHintsForBufferedImage(java.awt.Graphics2D g2d)
          Sets rendering hints on the Graphics2D created for painting to a BufferedImage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.fop.render.Graphics2DAdapter
paintImage
 

Constructor Detail

AbstractGraphics2DAdapter

public AbstractGraphics2DAdapter()
Method Detail

paintToBufferedImage

protected java.awt.image.BufferedImage paintToBufferedImage(Graphics2DImagePainter painter,
                                                            RendererContext.RendererContextWrapper context,
                                                            int resolution,
                                                            boolean gray,
                                                            boolean withAlpha)
Paints the image to a BufferedImage and returns that.

Parameters:
painter - the painter which will paint the actual image
context - the renderer context for the current renderer
resolution - the requested bitmap resolution
gray - true if the generated image should be in grayscales
Returns:
the generated BufferedImage

setRenderingHintsForBufferedImage

protected void setRenderingHintsForBufferedImage(java.awt.Graphics2D g2d)
Sets rendering hints on the Graphics2D created for painting to a BufferedImage. Subclasses can modify the settings to customize the behaviour.

Parameters:
g2d - the Graphics2D instance

fop 0.94

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.