net.sf.jasperreports.engine.fill
public interface JRExtendedIncrementer extends JRIncrementer
The JRIncrementer
has been
kept for backward compatibility.
The crosstab calculation engine requires extended incrementers. An incrementer implementing
JRIncrementer
can be used for report
variables only.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
combine(JRCalculable calculable,
JRCalculable calculableValue,
AbstractValueProvider valueProvider)
Combines two calculated values into one.
|
boolean |
ignoresNullValues()
Specifies whether
null values are ignored by this incrementer. |
java.lang.Object |
increment(JRCalculable calculable,
java.lang.Object expressionValue,
AbstractValueProvider valueProvider)
Increments a calculable object with a value.
|
java.lang.Object |
initialValue()
Returns the initial value for this calculation.
|
increment
java.lang.Object increment(JRCalculable calculable, java.lang.Object expressionValue, AbstractValueProvider valueProvider) throws JRException
calculable
- the calculableexpressionValue
- the valuevalueProvider
- value providerJRException
java.lang.Object initialValue()
This method should return a neutral value for this calculation (e.g. 0 for sum, 1 for product, etc) or a default value if no neutral value exists.
java.lang.Object combine(JRCalculable calculable, JRCalculable calculableValue, AbstractValueProvider valueProvider) throws JRException
calculable
- the first calculated valuecalculableValue
- the second calculated valuevalueProvider
- the value provider used for the helper variablesJRException
boolean ignoresNullValues()
null
values are ignored by this incrementer.
If null
values are ignored, the caller can chose to skip
incrementing a calculation with a null
value.null
values are ignored by this incrementer© 2001-2010 Jaspersoft Corporation www.jaspersoft.com