|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRCrosstabMeasure
Crosstab measure interface.
A measure is a value that is accumulated by the crosstab and is displayed in the crosstab cells.
Field Summary | |
---|---|
static byte |
PERCENTAGE_TYPE_GRAND_TOTAL
Percentage type indicating that the value will be calculated as percentage of the grand total value. |
static byte |
PERCENTAGE_TYPE_NONE
Percentage type indicating that the value will not be calculated as a percentage. |
Method Summary | |
---|---|
byte |
getCalculation()
Returns the calculation type which will be performed on the measure values. |
java.lang.Class |
getIncrementerFactoryClass()
Returns the incrementer factory class. |
java.lang.String |
getIncrementerFactoryClassName()
Returns the incrementer factory class name. |
java.lang.String |
getName()
Returns the name of the measure. |
java.lang.Class |
getPercentageCalculatorClass()
Returns the percentage calcualtor class. |
java.lang.String |
getPercentageCalculatorClassName()
Returns the percentage calculator class name. |
byte |
getPercentageOfType()
Returns the percentage calculation type performed on this measure. |
java.lang.Class |
getValueClass()
Returns the value class of this measure. |
java.lang.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. |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Field Detail |
---|
static final byte PERCENTAGE_TYPE_NONE
static final byte PERCENTAGE_TYPE_GRAND_TOTAL
Method Detail |
---|
java.lang.String getName()
getVariable()
java.lang.String getValueClassName()
java.lang.Class getValueClass()
JRExpression getValueExpression()
byte getCalculation()
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.getCalculation()
with
the exception of JRVariable.CALCULATION_SYSTEM
.
getIncrementerFactoryClassName()
,
JRExtendedIncrementerFactory
,
JRExtendedIncrementer
java.lang.String getIncrementerFactoryClassName()
Crosstab measures require extended incrementers, therefore
the incrementer class should implement
JRExtendedIncrementerFactory
.
java.lang.Class getIncrementerFactoryClass()
getIncrementerFactoryClassName()
byte getPercentageOfType()
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()
java.lang.String getPercentageCalculatorClassName()
java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |