Package net.sf.jasperreports.renderers
Class WrappingRenderToImageDataRenderer
- java.lang.Object
-
- net.sf.jasperreports.renderers.AbstractRenderer
-
- net.sf.jasperreports.renderers.AbstractRenderToImageAwareRenderer
-
- net.sf.jasperreports.renderers.AbstractRenderToImageDataRenderer
-
- net.sf.jasperreports.renderers.WrappingRenderToImageDataRenderer
-
- All Implemented Interfaces:
Serializable
,DataRenderable
,DimensionRenderable
,Graphics2DRenderable
,Renderable
,RenderToImageAwareRenderable
public class WrappingRenderToImageDataRenderer extends AbstractRenderToImageDataRenderer
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.renderers.AbstractRenderToImageDataRenderer
EXCEPTION_MESSAGE_KEY_DIMENSION_MUST_OVERRIDE, EXCEPTION_MESSAGE_KEY_DIMENSION_NULL_NOT_ALLOWED
-
Fields inherited from interface net.sf.jasperreports.renderers.Renderable
PROPERTY_IMAGE_DPI
-
-
Constructor Summary
Constructors Constructor Description WrappingRenderToImageDataRenderer(Graphics2DRenderable renderer, Dimension2D dimension, Color backcolor)
WrappingRenderToImageDataRenderer(Graphics2DRenderable renderer, DimensionRenderable dimensionRender, Color backcolor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graphics2D
createGraphics(BufferedImage bi)
Color
getBackcolor()
Dimension2D
getDimension(JasperReportsContext jasperReportsContext)
int
getImageDataDPI(JasperReportsContext jasperReportsContext)
void
render(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle)
-
Methods inherited from class net.sf.jasperreports.renderers.AbstractRenderToImageDataRenderer
getData
-
Methods inherited from class net.sf.jasperreports.renderers.AbstractRenderer
getId
-
-
-
-
Constructor Detail
-
WrappingRenderToImageDataRenderer
public WrappingRenderToImageDataRenderer(Graphics2DRenderable renderer, Dimension2D dimension, Color backcolor)
-
WrappingRenderToImageDataRenderer
public WrappingRenderToImageDataRenderer(Graphics2DRenderable renderer, DimensionRenderable dimensionRender, Color backcolor)
-
-
Method Detail
-
getDimension
public Dimension2D getDimension(JasperReportsContext jasperReportsContext)
- Specified by:
getDimension
in interfaceDimensionRenderable
- Overrides:
getDimension
in classAbstractRenderToImageDataRenderer
-
getBackcolor
public Color getBackcolor()
- Overrides:
getBackcolor
in classAbstractRenderToImageDataRenderer
-
render
public void render(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle) throws JRException
- Throws:
JRException
-
getImageDataDPI
public int getImageDataDPI(JasperReportsContext jasperReportsContext)
- Specified by:
getImageDataDPI
in interfaceRenderToImageAwareRenderable
- Overrides:
getImageDataDPI
in classAbstractRenderToImageAwareRenderer
-
createGraphics
public Graphics2D createGraphics(BufferedImage bi)
- Specified by:
createGraphics
in interfaceRenderToImageAwareRenderable
- Overrides:
createGraphics
in classAbstractRenderToImageAwareRenderer
-
-