public class JRFillCrosstabMeasure extends java.lang.Object implements JRCrosstabMeasure
| Modifier and Type | Field and Description |
|---|---|
protected JRExtendedIncrementerFactory |
incrementerFactory |
protected JRCrosstabMeasure |
parentMeasure |
protected JRPercentageCalculator |
percentageCalculator |
protected JRFillVariable |
variable |
| Constructor and Description |
|---|
JRFillCrosstabMeasure(JRCrosstabMeasure measure,
JRFillCrosstabObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
JRPercentageCalculator |
createPercentageCalculator() |
CalculationEnum |
getCalculationValue()
Returns the calculation type which will be performed on the measure values.
|
JRFillVariable |
getFillVariable() |
JRExtendedIncrementerFactory |
getIncrementerFactory() |
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.
|
JRPercentageCalculator |
getPercentageCalculator() |
java.lang.Class<?> |
getPercentageCalculatorClass()
Returns the percentage calculator class.
|
java.lang.String |
getPercentageCalculatorClassName()
Returns the percentage calculator class name.
|
CrosstabPercentageEnum |
getPercentageType()
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.
|
protected JRCrosstabMeasure parentMeasure
protected JRFillVariable variable
protected JRExtendedIncrementerFactory incrementerFactory
protected JRPercentageCalculator percentageCalculator
public JRFillCrosstabMeasure(JRCrosstabMeasure measure, JRFillCrosstabObjectFactory factory)
public java.lang.String getName()
JRCrosstabMeasuregetName in interface JRCrosstabMeasureJRCrosstabMeasure.getVariable()public java.lang.String getValueClassName()
JRCrosstabMeasuregetValueClassName in interface JRCrosstabMeasurepublic java.lang.Class<?> getValueClass()
JRCrosstabMeasuregetValueClass in interface JRCrosstabMeasurepublic JRExpression getValueExpression()
JRCrosstabMeasuregetValueExpression in interface JRCrosstabMeasurepublic CalculationEnum getCalculationValue()
JRCrosstabMeasureThe 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.
getCalculationValue in interface JRCrosstabMeasureJRCrosstabMeasure.getIncrementerFactoryClassName(),
JRExtendedIncrementerFactory,
JRExtendedIncrementerpublic java.lang.String getIncrementerFactoryClassName()
JRCrosstabMeasure
Crosstab measures require extended incrementers, therefore
the incrementer class should implement
JRExtendedIncrementerFactory.
getIncrementerFactoryClassName in interface JRCrosstabMeasurepublic java.lang.Class<?> getIncrementerFactoryClass()
JRCrosstabMeasuregetIncrementerFactoryClass in interface JRCrosstabMeasureJRCrosstabMeasure.getIncrementerFactoryClassName()public CrosstabPercentageEnum getPercentageType()
JRCrosstabMeasureCurrently, 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.
getPercentageType in interface JRCrosstabMeasureJRPercentageCalculatorFactory.hasBuiltInCalculator(Class),
JRCrosstabMeasure.getPercentageCalculatorClassName()public JRVariable getVariable()
JRCrosstabMeasureThe 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.
getVariable in interface JRCrosstabMeasurepublic JRFillVariable getFillVariable()
public JRExtendedIncrementerFactory getIncrementerFactory()
public JRPercentageCalculator getPercentageCalculator()
public JRPercentageCalculator createPercentageCalculator()
public java.lang.String getPercentageCalculatorClassName()
JRCrosstabMeasuregetPercentageCalculatorClassName in interface JRCrosstabMeasurepublic java.lang.Class<?> getPercentageCalculatorClass()
JRCrosstabMeasuregetPercentageCalculatorClass in interface JRCrosstabMeasurepublic java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Object© 2001-2010 Jaspersoft Corporation www.jaspersoft.com