public interface JRCrosstabMeasure extends JRCloneable
A measure is a value that is accumulated by the crosstab and is displayed in the crosstab cells.
Modifier and Type | Method and Description |
---|---|
CalculationEnum |
getCalculationValue()
Returns the calculation type which will be performed on the measure values.
|
Class<?> |
getIncrementerFactoryClass()
Returns the incrementer factory class.
|
String |
getIncrementerFactoryClassName()
Returns the incrementer factory class name.
|
String |
getName()
Returns the name of the measure.
|
Class<?> |
getPercentageCalculatorClass()
Returns the percentage calculator class.
|
String |
getPercentageCalculatorClassName()
Returns the percentage calculator class name.
|
CrosstabPercentageEnum |
getPercentageType()
Returns the percentage calculation type performed on this measure.
|
Class<?> |
getValueClass()
Returns the value class of this measure.
|
String |
getValueClassName()
Returns the name of the value class for this measure.
|
JRExpression |
getValueExpression()
Returns the measure expression.
|
JRVariable |
getVariable()
Returns the variable associated with this measure.
|
clone
String getName()
getVariable()
String getValueClassName()
Class<?> getValueClass()
JRExpression getValueExpression()
CalculationEnum getCalculationValue()
The incrementer factory associated with this measure will create an incrementer which will sum the measure values.
The possible calculation type are the same as the ones used for variables
(see JRVariable.getCalculationValue()
with
the exception of CalculationEnum.SYSTEM
.
getIncrementerFactoryClassName()
,
JRExtendedIncrementerFactory
,
JRExtendedIncrementer
String getIncrementerFactoryClassName()
Crosstab measures require extended incrementers, therefore
the incrementer class should implement
JRExtendedIncrementerFactory
.
Class<?> getIncrementerFactoryClass()
getIncrementerFactoryClassName()
CrosstabPercentageEnum getPercentageType()
Currently, only percentage out of grand total is supported.
The possible values are:
If percentage calculation is required, the value class should be one of the built-in supported percentage types or the percentage calculator class should be specified.
JRPercentageCalculatorFactory.hasBuiltInCalculator(Class)
,
getPercentageCalculatorClassName()
String getPercentageCalculatorClassName()
Class<?> getPercentageCalculatorClass()
JRVariable getVariable()
The variable can be used inside the crosstab data cells as the measure value. The variable has the same name and value class as the measure.
Copyright © 2016. All rights reserved.