Class LegendShapeCustomizer
- java.lang.Object
-
- net.sf.jasperreports.charts.JRAbstractChartCustomizer
-
- net.sf.jasperreports.customizers.shape.AbstractShapeCustomizer
-
- net.sf.jasperreports.customizers.shape.LegendShapeCustomizer
-
- All Implemented Interfaces:
JRChartCustomizer
,NamedChartCustomizer
public class LegendShapeCustomizer extends AbstractShapeCustomizer
Customizer to define the shape of a specific legend item, works for both XY and Category plot. The shape and other informations are encoded into a JSON string.- Author:
- Marco Orlandin (dejawho2@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
LegendShapeCustomizer.AbstractRendererLegendShapeSetter
-
Nested classes/interfaces inherited from class net.sf.jasperreports.customizers.shape.AbstractShapeCustomizer
AbstractShapeCustomizer.ShapeSetter
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.customizers.shape.AbstractShapeCustomizer
PROPERTY_SHAPE_HEIGHT, PROPERTY_SHAPE_POINTS, PROPERTY_SHAPE_TYPE, PROPERTY_SHAPE_WIDTH
-
Fields inherited from class net.sf.jasperreports.charts.JRAbstractChartCustomizer
chart, filler
-
Fields inherited from interface net.sf.jasperreports.charts.JRChartCustomizer
CUSTOMIZER_CLASS_PROPERTY_PREFIX, CUSTOMIZER_PROPERTY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description LegendShapeCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(org.jfree.chart.JFreeChart jfc, JRChart jrc)
This method is called at fill time, before the chart is rendered.protected Point
getOffset(Dimension2D size)
protected Point
getOffset(Rectangle2D bounds)
-
Methods inherited from class net.sf.jasperreports.customizers.shape.AbstractShapeCustomizer
buildEllipse, buildPolygon, buildPolyline, buildRectangle, buildShape, getBounds, getHeight, getSize, getWidth, updateItem, updateItems
-
Methods inherited from class net.sf.jasperreports.charts.JRAbstractChartCustomizer
getBooleanProperty, getCustomizerPropertyName, getDoubleProperty, getFieldValue, getFieldValue, getFloatProperty, getIntegerProperty, getParameterValue, getParameterValue, getProperty, getVariableValue, getVariableValue, init, setName
-
-
-
-
Method Detail
-
customize
public void customize(org.jfree.chart.JFreeChart jfc, JRChart jrc)
Description copied from interface:JRChartCustomizer
This method is called at fill time, before the chart is rendered.- Parameters:
jfc
- the JFreeChart object, which can be accessed and modifiedjrc
- the JasperReports version of the chart, containing data that might be needed in customization
-
getOffset
protected Point getOffset(Dimension2D size)
- Specified by:
getOffset
in classAbstractShapeCustomizer
-
getOffset
protected Point getOffset(Rectangle2D bounds)
- Specified by:
getOffset
in classAbstractShapeCustomizer
-
-