public abstract class JRAbstractChartCustomizer extends Object implements NamedChartCustomizer
JRChartCustomizer that provides
access to parameter, variable and field values.| Modifier and Type | Field and Description |
|---|---|
protected JRFillChart |
chart |
protected JRBaseFiller |
filler |
CUSTOMIZER_CLASS_PROPERTY_PREFIX, CUSTOMIZER_PROPERTY_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
JRAbstractChartCustomizer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getBooleanProperty(String propertySuffix) |
String |
getCustomizerPropertyName(String propertySuffix) |
Double |
getDoubleProperty(String propertySuffix) |
protected Object |
getFieldValue(String fieldName)
Returns the value of a report field.
|
protected Object |
getFieldValue(String fieldName,
boolean fromInputDataset)
Returns the value of a report or input dataset field.
|
Float |
getFloatProperty(String propertySuffix) |
Integer |
getIntegerProperty(String propertySuffix) |
protected Object |
getParameterValue(String parameterName)
Returns the value of a report parameter.
|
protected Object |
getParameterValue(String parameterName,
boolean fromInputDataset)
Returns the value of a report or input dataset parameter.
|
String |
getProperty(String propertySuffix) |
protected Object |
getVariableValue(String variableName)
Returns the value of a report variable.
|
protected Object |
getVariableValue(String variableName,
boolean fromInputDataset)
Returns the value of a report or input dataset variable.
|
void |
init(JRBaseFiller chartFiller,
JRFillChart chart)
Deprecated.
Replaced by
init(JRFillChart). |
void |
init(JRFillChart chart)
Initializes the chart customizer.
|
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustomizeprotected JRFillChart chart
protected JRBaseFiller filler
protected JRAbstractChartCustomizer()
public void init(JRBaseFiller chartFiller, JRFillChart chart)
init(JRFillChart).public void init(JRFillChart chart)
chart - the fill chart objectprotected final Object getParameterValue(String parameterName)
parameterName - the parameter nameprotected final Object getParameterValue(String parameterName, boolean fromInputDataset)
The input dataset differs from the report dataset when the chart uses a sub dataset as input.
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.
protected final Object getVariableValue(String variableName)
variableName - the variable nameprotected final Object getVariableValue(String variableName, boolean fromInputDataset)
The input dataset differs from the report dataset when the chart uses a sub dataset as input.
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.
protected final Object getFieldValue(String fieldName)
fieldName - the field nameprotected final Object getFieldValue(String fieldName, boolean fromInputDataset)
The input dataset differs from the report dataset when the chart uses a sub dataset as input.
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.
public void setName(String name)
setName in interface NamedChartCustomizerCopyright © 2017. All rights reserved.