Class JRFillCrosstabMeasure
- All Implemented Interfaces:
Cloneable,JRCrosstabMeasure,JRCloneable
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExtendedIncrementerFactoryprotected JRCrosstabMeasureprotected JRPercentageCalculatorprotected JRFillVariable -
Constructor Summary
ConstructorsConstructorDescriptionJRFillCrosstabMeasure(JRCrosstabMeasure measure, JRFillCrosstabObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the calculation type which will be performed on the measure values.Class<?> Returns the incrementer factory class.Returns the incrementer factory class name.getName()Returns the name of the measure.Class<?> Returns the percentage calculator class.Returns the percentage calculator class name.Returns the percentage calculation type performed on this measure.Class<?> Returns the value class of this measure.Returns the name of the value class for this measure.Returns the measure expression.Returns the variable associated with this measure.
-
Field Details
-
parentMeasure
-
variable
-
incrementerFactory
-
percentageCalculator
-
-
Constructor Details
-
JRFillCrosstabMeasure
-
-
Method Details
-
getName
Description copied from interface:JRCrosstabMeasureReturns the name of the measure.- Specified by:
getNamein interfaceJRCrosstabMeasure- Returns:
- the name of the measure
- See Also:
-
getValueClassName
Description copied from interface:JRCrosstabMeasureReturns the name of the value class for this measure.- Specified by:
getValueClassNamein interfaceJRCrosstabMeasure- Returns:
- the name of the value class for this measure
-
getValueClass
Description copied from interface:JRCrosstabMeasureReturns the value class of this measure.- Specified by:
getValueClassin interfaceJRCrosstabMeasure- Returns:
- the value class of this measure
-
getValueExpression
Description copied from interface:JRCrosstabMeasureReturns the measure expression.- Specified by:
getValueExpressionin interfaceJRCrosstabMeasure- Returns:
- the measure expression
-
getCalculation
Description copied from interface:JRCrosstabMeasureReturns the calculation type which will be performed on the measure values.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 ofCalculationEnum.SYSTEM.- Specified by:
getCalculationin interfaceJRCrosstabMeasure- Returns:
- the calculation type which will be performed on the measure values
- See Also:
-
getIncrementerFactoryClassName
Description copied from interface:JRCrosstabMeasureReturns the incrementer factory class name.Crosstab measures require extended incrementers, therefore the incrementer class should implement
JRExtendedIncrementerFactory.- Specified by:
getIncrementerFactoryClassNamein interfaceJRCrosstabMeasure- Returns:
- the incrementer factory class name
-
getIncrementerFactoryClass
Description copied from interface:JRCrosstabMeasureReturns the incrementer factory class.- Specified by:
getIncrementerFactoryClassin interfaceJRCrosstabMeasure- Returns:
- the incrementer factory class
- See Also:
-
getPercentageType
Description copied from interface:JRCrosstabMeasureReturns the percentage calculation type performed on this measure.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.
- Specified by:
getPercentageTypein interfaceJRCrosstabMeasure- Returns:
- the percentage calculation type
- See Also:
-
getVariable
Description copied from interface:JRCrosstabMeasureReturns the variable associated with this measure.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.
- Specified by:
getVariablein interfaceJRCrosstabMeasure- Returns:
- the variable associated with this measure
-
getFillVariable
-
getIncrementerFactory
-
getPercentageCalculator
-
createPercentageCalculator
-
getPercentageCalculatorClassName
Description copied from interface:JRCrosstabMeasureReturns the percentage calculator class name.- Specified by:
getPercentageCalculatorClassNamein interfaceJRCrosstabMeasure- Returns:
- the percentage calculator class name
-
getPercentageCalculatorClass
Description copied from interface:JRCrosstabMeasureReturns the percentage calculator class.- Specified by:
getPercentageCalculatorClassin interfaceJRCrosstabMeasure- Returns:
- the percentage calculator class
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-