org.apache.fop.render
Interface Graphics2DImagePainter
public interface Graphics2DImagePainter
This interface is used by the Graphics2DAdapter. Components that can paint using
a Graphics2D instance can implement this interface to paint themselves.
Dimension | getImageSize()
|
void | paint(Graphics2D g2d, Rectangle2D area) - Called to paint the image.
|
getImageSize
public Dimension getImageSize()
- the dimensions of the image to be painted in millipoints
paint
public void paint(Graphics2D g2d,
Rectangle2D area)
Called to paint the image. Implementations should scale so the image is
painted fully inside the given area indicated by then Rectangle2D object.
g2d
- the Graphics2D instance to paint onarea
- the target area for the image
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.