|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.crosstabs.base.JRBaseCrosstabMeasure
public class JRBaseCrosstabMeasure
Base read-only crosstab measure implementation.
Field Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
protected |
JRBaseCrosstabMeasure()
|
|
JRBaseCrosstabMeasure(JRCrosstabMeasure measure,
JRBaseObjectFactory factory)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
protected JRBaseCrosstabMeasure()
public JRBaseCrosstabMeasure(JRCrosstabMeasure measure, JRBaseObjectFactory factory)
Method Detail |
---|
public java.lang.String getName()
JRCrosstabMeasure
getName
in interface JRCrosstabMeasure
JRCrosstabMeasure.getVariable()
public java.lang.String getValueClassName()
JRCrosstabMeasure
getValueClassName
in interface JRCrosstabMeasure
public JRExpression getValueExpression()
JRCrosstabMeasure
getValueExpression
in interface JRCrosstabMeasure
public CalculationEnum getCalculationValue()
JRCrosstabMeasure
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
.
getCalculationValue
in interface JRCrosstabMeasure
JRCrosstabMeasure.getIncrementerFactoryClassName()
,
JRExtendedIncrementerFactory
,
JRExtendedIncrementer
public java.lang.String getIncrementerFactoryClassName()
JRCrosstabMeasure
Crosstab measures require extended incrementers, therefore
the incrementer class should implement
JRExtendedIncrementerFactory
.
getIncrementerFactoryClassName
in interface JRCrosstabMeasure
public CrosstabPercentageEnum getPercentageType()
JRCrosstabMeasure
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.
getPercentageType
in interface JRCrosstabMeasure
JRPercentageCalculatorFactory.hasBuiltInCalculator(Class)
,
JRCrosstabMeasure.getPercentageCalculatorClassName()
public java.lang.Class<?> getIncrementerFactoryClass()
JRCrosstabMeasure
getIncrementerFactoryClass
in interface JRCrosstabMeasure
JRCrosstabMeasure.getIncrementerFactoryClassName()
public java.lang.Class<?> getValueClass()
JRCrosstabMeasure
getValueClass
in interface JRCrosstabMeasure
public JRVariable getVariable()
JRCrosstabMeasure
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.
getVariable
in interface JRCrosstabMeasure
public java.lang.String getPercentageCalculatorClassName()
JRCrosstabMeasure
getPercentageCalculatorClassName
in interface JRCrosstabMeasure
public java.lang.Class<?> getPercentageCalculatorClass()
JRCrosstabMeasure
getPercentageCalculatorClass
in interface JRCrosstabMeasure
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |