Package net.sf.jasperreports.charts.util
Class DrawChartRendererImpl
- java.lang.Object
-
- net.sf.jasperreports.renderers.AbstractRenderer
-
- net.sf.jasperreports.charts.util.DrawChartRendererImpl
-
- All Implemented Interfaces:
Serializable
,AreaHyperlinksRenderable
,Graphics2DRenderable
,Renderable
public class DrawChartRendererImpl extends AbstractRenderer implements AreaHyperlinksRenderable, Graphics2DRenderable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.renderers.Renderable
PROPERTY_IMAGE_DPI
-
-
Constructor Summary
Constructors Constructor Description DrawChartRendererImpl(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JRPrintImageAreaHyperlink>
getImageAreaHyperlinks(Rectangle2D renderingArea)
Returns the list ofimage map areas
.boolean
hasImageAreaHyperlinks()
Indicates whether the renderer actually includes any image map areas.void
render(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle)
-
Methods inherited from class net.sf.jasperreports.renderers.AbstractRenderer
getId
-
-
-
-
Constructor Detail
-
DrawChartRendererImpl
public DrawChartRendererImpl(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider)
-
-
Method Detail
-
render
public void render(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle)
- Specified by:
render
in interfaceGraphics2DRenderable
-
getImageAreaHyperlinks
public List<JRPrintImageAreaHyperlink> getImageAreaHyperlinks(Rectangle2D renderingArea) throws JRException
Description copied from interface:AreaHyperlinksRenderable
Returns the list ofimage map areas
.- Specified by:
getImageAreaHyperlinks
in interfaceAreaHyperlinksRenderable
- Parameters:
renderingArea
- the area on which the image would be rendered- Returns:
- a list of
JRPrintImageAreaHyperlink
instances. - Throws:
JRException
-
hasImageAreaHyperlinks
public boolean hasImageAreaHyperlinks()
Description copied from interface:AreaHyperlinksRenderable
Indicates whether the renderer actually includes any image map areas.- Specified by:
hasImageAreaHyperlinks
in interfaceAreaHyperlinksRenderable
- Returns:
- whether the renderer actually includes any image map areas
-
-