Package net.sf.jasperreports.charts
Class JRAbstractChartCustomizer
java.lang.Object
net.sf.jasperreports.charts.JRAbstractChartCustomizer
- All Implemented Interfaces:
JRChartCustomizer,NamedChartCustomizer
- Direct Known Subclasses:
AbstractAxisCustomizer,AbstractMarkerCustomizer,AbstractShapeCustomizer,LevelRenderCustomizer
Abstract implementation of
JRChartCustomizer that provides
access to parameter, variable and field values.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
FieldsFields inherited from interface net.sf.jasperreports.charts.JRChartCustomizer
CUSTOMIZER_CLASS_PROPERTY_PREFIX, CUSTOMIZER_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleangetBooleanProperty(String propertySuffix) final StringgetCustomizerPropertyName(String propertySuffix) final DoublegetDoubleProperty(String propertySuffix) protected final ObjectgetFieldValue(String fieldName) Returns the value of a report field.protected final ObjectgetFieldValue(String fieldName, boolean fromInputDataset) Returns the value of a report or input dataset field.final FloatgetFloatProperty(String propertySuffix) final IntegergetIntegerProperty(String propertySuffix) protected final ObjectgetParameterValue(String parameterName) Returns the value of a report parameter.protected final ObjectgetParameterValue(String parameterName, boolean fromInputDataset) Returns the value of a report or input dataset parameter.final StringgetProperty(String propertySuffix) protected final ObjectgetVariableValue(String variableName) Returns the value of a report variable.protected final ObjectgetVariableValue(String variableName, boolean fromInputDataset) Returns the value of a report or input dataset variable.voidinit(JRFillChart chart) Initializes the chart customizer.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.charts.JRChartCustomizer
customize
-
Field Details
-
chart
-
filler
-
-
Constructor Details
-
JRAbstractChartCustomizer
protected JRAbstractChartCustomizer()Default constructor.
-
-
Method Details
-
init
Initializes the chart customizer.- Parameters:
chart- the fill chart object
-
getParameterValue
Returns the value of a report parameter.- Parameters:
parameterName- the parameter name- Returns:
- the value of a report parameter
-
getParameterValue
Returns the value of a report or input dataset parameter.The input dataset differs from the report dataset when the chart uses a sub dataset as input.
- Parameters:
parameterName- the parameter namefromInputDataset- whether the parameter belongs to the input dataset rather than the report.This is usefull only when the chart uses a sub dataset as input.
- Returns:
- the value of the parameter
-
getVariableValue
Returns the value of a report variable.- Parameters:
variableName- the variable name- Returns:
- the value of a report variable
-
getVariableValue
Returns the value of a report or input dataset variable.The input dataset differs from the report dataset when the chart uses a sub dataset as input.
- Parameters:
variableName- the variable namefromInputDataset- whether the variable belongs to the input dataset rather than the report.This is usefull only when the chart uses a sub dataset as input.
- Returns:
- the value of the variable
-
getFieldValue
Returns the value of a report field.- Parameters:
fieldName- the field name- Returns:
- the value of a report field
-
getFieldValue
Returns the value of a report or input dataset field.The input dataset differs from the report dataset when the chart uses a sub dataset as input.
- Parameters:
fieldName- the field namefromInputDataset- whether the field belongs to the input dataset rather than the report.This is usefull only when the chart uses a sub dataset as input.
- Returns:
- the value of the field
-
setName
- Specified by:
setNamein interfaceNamedChartCustomizer
-
getCustomizerPropertyName
-
getBooleanProperty
-
getProperty
-
getIntegerProperty
-
getFloatProperty
-
getDoubleProperty
-