|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.crosstabs.base.JRBaseCrosstabMeasure
public class JRBaseCrosstabMeasure
Base read-only crosstab measure implementation.
| Field Summary | |
|---|---|
protected CalculationEnum |
calculationValue
|
protected JRExpression |
expression
|
protected Class<?> |
incrementerFactoryClass
|
protected String |
incrementerFactoryClassName
|
protected String |
incrementerFactoryClassRealName
|
protected String |
name
|
protected Class<?> |
percentageCalculatorClass
|
protected String |
percentageCalculatorClassName
|
protected String |
percentageCalculatorClassRealName
|
protected CrosstabPercentageEnum |
percentageType
|
protected Class<?> |
valueClass
|
protected String |
valueClassName
|
protected String |
valueClassRealName
|
protected JRVariable |
variable
|
| Constructor Summary | |
|---|---|
protected |
JRBaseCrosstabMeasure()
|
|
JRBaseCrosstabMeasure(JRCrosstabMeasure measure,
JRBaseObjectFactory factory)
|
| Method Summary | |
|---|---|
Object |
clone()
|
CalculationEnum |
getCalculationValue()
Returns the calculation type which will be performed on the measure values. |
Class<?> |
getIncrementerFactoryClass()
Returns the incrementer factory class. |
String |
getIncrementerFactoryClassName()
Returns the incrementer factory class name. |
String |
getName()
Returns the name of the measure. |
Class<?> |
getPercentageCalculatorClass()
Returns the percentage calculator class. |
String |
getPercentageCalculatorClassName()
Returns the percentage calculator class name. |
CrosstabPercentageEnum |
getPercentageType()
Returns the percentage calculation type performed on this measure. |
Class<?> |
getValueClass()
Returns the value class of this measure. |
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 String name
protected String valueClassName
protected String valueClassRealName
protected Class<?> valueClass
protected JRExpression expression
protected CalculationEnum calculationValue
protected String incrementerFactoryClassName
protected String incrementerFactoryClassRealName
protected Class<?> incrementerFactoryClass
protected CrosstabPercentageEnum percentageType
protected String percentageCalculatorClassName
protected String percentageCalculatorClassRealName
protected Class<?> percentageCalculatorClass
protected JRVariable variable
| Constructor Detail |
|---|
protected JRBaseCrosstabMeasure()
public JRBaseCrosstabMeasure(JRCrosstabMeasure measure,
JRBaseObjectFactory factory)
| Method Detail |
|---|
public String getName()
JRCrosstabMeasure
getName in interface JRCrosstabMeasureJRCrosstabMeasure.getVariable()public String getValueClassName()
JRCrosstabMeasure
getValueClassName in interface JRCrosstabMeasurepublic JRExpression getValueExpression()
JRCrosstabMeasure
getValueExpression 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 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 Class<?> getIncrementerFactoryClass()
JRCrosstabMeasure
getIncrementerFactoryClass in interface JRCrosstabMeasureJRCrosstabMeasure.getIncrementerFactoryClassName()public Class<?> getValueClass()
JRCrosstabMeasure
getValueClass 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 String getPercentageCalculatorClassName()
JRCrosstabMeasure
getPercentageCalculatorClassName in interface JRCrosstabMeasurepublic Class<?> getPercentageCalculatorClass()
JRCrosstabMeasure
getPercentageCalculatorClass in interface JRCrosstabMeasurepublic Object clone()
clone in interface JRCloneableclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||