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
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 ClassesModifier and TypeClassDescriptionprotected classNested 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_WIDTHFields inherited from class net.sf.jasperreports.charts.JRAbstractChartCustomizer
chart, fillerFields inherited from interface net.sf.jasperreports.charts.JRChartCustomizer
CUSTOMIZER_CLASS_PROPERTY_PREFIX, CUSTOMIZER_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called at fill time, before the chart is rendered.protected PointgetOffset(Dimension2D size) protected PointgetOffset(Rectangle2D bounds) Methods inherited from class net.sf.jasperreports.customizers.shape.AbstractShapeCustomizer
buildEllipse, buildPolygon, buildPolyline, buildRectangle, buildShape, getBounds, getHeight, getSize, getWidth, updateItem, updateItemsMethods inherited from class net.sf.jasperreports.charts.JRAbstractChartCustomizer
getBooleanProperty, getCustomizerPropertyName, getDoubleProperty, getFieldValue, getFieldValue, getFloatProperty, getIntegerProperty, getParameterValue, getParameterValue, getProperty, getVariableValue, getVariableValue, init, setName
-
Constructor Details
-
LegendShapeCustomizer
public LegendShapeCustomizer()
-
-
Method Details
-
customize
Description copied from interface:JRChartCustomizerThis 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
- Specified by:
getOffsetin classAbstractShapeCustomizer
-
getOffset
- Specified by:
getOffsetin classAbstractShapeCustomizer
-