public class JRBaseCrosstabMeasure extends java.lang.Object implements JRCrosstabMeasure, java.io.Serializable, CrosstabBaseCloneable
| Modifier and Type | Field and Description |
|---|---|
protected CalculationEnum |
calculationValue |
protected JRExpression |
expression |
protected java.lang.Class<?> |
incrementerFactoryClass |
protected java.lang.String |
incrementerFactoryClassName |
protected java.lang.String |
incrementerFactoryClassRealName |
protected java.lang.String |
name |
protected java.lang.Class<?> |
percentageCalculatorClass |
protected java.lang.String |
percentageCalculatorClassName |
protected java.lang.String |
percentageCalculatorClassRealName |
protected CrosstabPercentageEnum |
percentageType |
protected java.lang.Class<?> |
valueClass |
protected java.lang.String |
valueClassName |
protected java.lang.String |
valueClassRealName |
protected JRVariable |
variable |
| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseCrosstabMeasure() |
|
JRBaseCrosstabMeasure(JRCrosstabMeasure measure,
JRBaseObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.lang.Object |
clone(CrosstabBaseCloneFactory cloneFactory) |
CalculationEnum |
getCalculationValue()
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 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 java.lang.String name
protected java.lang.String valueClassName
protected java.lang.String valueClassRealName
protected java.lang.Class<?> valueClass
protected JRExpression expression
protected CalculationEnum calculationValue
protected java.lang.String incrementerFactoryClassName
protected java.lang.String incrementerFactoryClassRealName
protected java.lang.Class<?> incrementerFactoryClass
protected CrosstabPercentageEnum percentageType
protected java.lang.String percentageCalculatorClassName
protected java.lang.String percentageCalculatorClassRealName
protected java.lang.Class<?> percentageCalculatorClass
protected JRVariable variable
protected JRBaseCrosstabMeasure()
public JRBaseCrosstabMeasure(JRCrosstabMeasure measure, JRBaseObjectFactory factory)
public java.lang.String getName()
JRCrosstabMeasuregetName in interface JRCrosstabMeasureJRCrosstabMeasure.getVariable()public java.lang.String getValueClassName()
JRCrosstabMeasuregetValueClassName 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 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 java.lang.Class<?> getIncrementerFactoryClass()
JRCrosstabMeasuregetIncrementerFactoryClass in interface JRCrosstabMeasureJRCrosstabMeasure.getIncrementerFactoryClassName()public java.lang.Class<?> getValueClass()
JRCrosstabMeasuregetValueClass in interface JRCrosstabMeasurepublic 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 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.Objectpublic java.lang.Object clone(CrosstabBaseCloneFactory cloneFactory)
clone in interface CrosstabBaseCloneable© 2001-2010 Jaspersoft Corporation www.jaspersoft.com