Package net.sf.jasperreports.charts.util
Class DrawChartRendererImpl
java.lang.Object
net.sf.jasperreports.renderers.AbstractRenderer
net.sf.jasperreports.renderers.AbstractRenderToImageAwareRenderer
net.sf.jasperreports.charts.util.DrawChartRendererImpl
- All Implemented Interfaces:
Serializable,AreaHyperlinksRenderable,Graphics2DRenderable,Renderable,RenderToImageAwareRenderable
public class DrawChartRendererImpl
extends AbstractRenderToImageAwareRenderer
implements AreaHyperlinksRenderable, Graphics2DRenderable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from interface net.sf.jasperreports.renderers.Renderable
PROPERTY_IMAGE_DPI -
Constructor Summary
ConstructorsConstructorDescriptionDrawChartRendererImpl(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider, int reportDpi) -
Method Summary
Modifier and TypeMethodDescriptiongetImageAreaHyperlinks(Rectangle2D renderingArea) Returns the list ofimage map areas.intReturns the resolution of the report this renderer belongs to.booleanIndicates whether the renderer actually includes any image map areas.voidrender(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle) Methods inherited from class net.sf.jasperreports.renderers.AbstractRenderToImageAwareRenderer
createGraphics, getImageDataDPIMethods inherited from class net.sf.jasperreports.renderers.AbstractRenderer
getId
-
Constructor Details
-
DrawChartRendererImpl
public DrawChartRendererImpl(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider, int reportDpi)
-
-
Method Details
-
getReportDpi
public int getReportDpi()Description copied from interface:RenderToImageAwareRenderableReturns the resolution of the report this renderer belongs to. Renderer dimensions are expressed in the pixels of the report, so the resolution is needed to work out the physical size an image has to be rasterized at.- Specified by:
getReportDpiin interfaceRenderToImageAwareRenderable
-
render
public void render(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle) - Specified by:
renderin interfaceGraphics2DRenderable
-
getImageAreaHyperlinks
public List<JRPrintImageAreaHyperlink> getImageAreaHyperlinks(Rectangle2D renderingArea) throws JRException Description copied from interface:AreaHyperlinksRenderableReturns the list ofimage map areas.- Specified by:
getImageAreaHyperlinksin interfaceAreaHyperlinksRenderable- Parameters:
renderingArea- the area on which the image would be rendered- Returns:
- a list of
JRPrintImageAreaHyperlinkinstances. - Throws:
JRException
-
hasImageAreaHyperlinks
public boolean hasImageAreaHyperlinks()Description copied from interface:AreaHyperlinksRenderableIndicates whether the renderer actually includes any image map areas.- Specified by:
hasImageAreaHyperlinksin interfaceAreaHyperlinksRenderable- Returns:
- whether the renderer actually includes any image map areas
-