|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.components.charts.AbstractChartCustomizer
public abstract class AbstractChartCustomizer
Abstract implementation of ChartCustomizer
that provides
access to parameter, variable and field values.
Constructor Summary | |
---|---|
protected |
AbstractChartCustomizer()
Default constructor. |
Method Summary | |
---|---|
JRFillElementDataset |
getChartDataset()
|
protected java.lang.Object |
getFieldValue(java.lang.String fieldName)
Returns the value of a report field. |
protected java.lang.Object |
getFieldValue(java.lang.String fieldName,
boolean fromInputDataset)
Returns the value of a report or input dataset field. |
JRBaseFiller |
getFiller()
|
protected java.lang.Object |
getParameterValue(java.lang.String parameterName)
Returns the value of a report parameter. |
protected java.lang.Object |
getParameterValue(java.lang.String parameterName,
boolean fromInputDataset)
Returns the value of a report or input dataset parameter. |
protected java.lang.Object |
getVariableValue(java.lang.String variableName)
Returns the value of a report variable. |
protected java.lang.Object |
getVariableValue(java.lang.String variableName,
boolean fromInputDataset)
Returns the value of a report or input dataset variable. |
void |
init(JRBaseFiller chartFiller,
JRFillElementDataset dataset)
Initializes the chart customizer. |
void |
setChartDataset(JRFillElementDataset chartDataset)
|
void |
setFiller(JRBaseFiller filler)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.components.charts.ChartCustomizer |
---|
customize |
Constructor Detail |
---|
protected AbstractChartCustomizer()
Method Detail |
---|
public void init(JRBaseFiller chartFiller, JRFillElementDataset dataset)
chartFiller
- the filler instancedataset
- the fill dataset objectprotected final java.lang.Object getParameterValue(java.lang.String parameterName)
parameterName
- the parameter name
protected final java.lang.Object getParameterValue(java.lang.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 java.lang.Object getVariableValue(java.lang.String variableName)
variableName
- the variable name
protected final java.lang.Object getVariableValue(java.lang.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 java.lang.Object getFieldValue(java.lang.String fieldName)
fieldName
- the field name
protected final java.lang.Object getFieldValue(java.lang.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 JRBaseFiller getFiller()
public void setFiller(JRBaseFiller filler)
filler
- the filler to setpublic JRFillElementDataset getChartDataset()
public void setChartDataset(JRFillElementDataset chartDataset)
chartDataset
- the chartDataset to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |