Class ImageConverterBitmap2G2D.Graphics2DImagePainterImpl
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.impl.ImageConverterBitmap2G2D.Graphics2DImagePainterImpl
-
- All Implemented Interfaces:
Graphics2DImagePainter
- Enclosing class:
- ImageConverterBitmap2G2D
static class ImageConverterBitmap2G2D.Graphics2DImagePainterImpl extends java.lang.Object implements Graphics2DImagePainter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ImageRendered
rendImage
-
Constructor Summary
Constructors Constructor Description Graphics2DImagePainterImpl(ImageRendered rendImage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Dimension
getImageSize()
void
paint(java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D area)
Called to paint the image.
-
-
-
Field Detail
-
rendImage
ImageRendered rendImage
-
-
Constructor Detail
-
Graphics2DImagePainterImpl
public Graphics2DImagePainterImpl(ImageRendered rendImage)
-
-
Method Detail
-
getImageSize
public java.awt.Dimension getImageSize()
- Specified by:
getImageSize
in interfaceGraphics2DImagePainter
- Returns:
- the dimensions (intrinsic size) of the image to be painted in millipoints
-
paint
public void paint(java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D area)
Description copied from interface:Graphics2DImagePainter
Called to paint the image. Implementations should scale so the image is painted fully inside the given area indicated by then Rectangle2D object.- Specified by:
paint
in interfaceGraphics2DImagePainter
- Parameters:
g2d
- the Graphics2D instance to paint onarea
- the target area for the image (in target device units)
-
-