|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.crosstabs.fill.JRFillCrosstabMeasure
public class JRFillCrosstabMeasure
Field Summary | |
---|---|
protected JRExtendedIncrementerFactory |
incrementerFactory
|
protected JRCrosstabMeasure |
parentMeasure
|
protected JRPercentageCalculator |
percentageCalculator
|
protected JRFillVariable |
variable
|
Constructor Summary | |
---|---|
JRFillCrosstabMeasure(JRCrosstabMeasure measure,
JRFillCrosstabObjectFactory factory)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JRCrosstabMeasure parentMeasure
protected JRFillVariable variable
protected JRExtendedIncrementerFactory incrementerFactory
protected JRPercentageCalculator percentageCalculator
Constructor Detail |
---|
public JRFillCrosstabMeasure(JRCrosstabMeasure measure, JRFillCrosstabObjectFactory 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 java.lang.Class<?> getValueClass()
JRCrosstabMeasure
getValueClass
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 java.lang.Class<?> getIncrementerFactoryClass()
JRCrosstabMeasure
getIncrementerFactoryClass
in interface JRCrosstabMeasure
JRCrosstabMeasure.getIncrementerFactoryClassName()
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 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 JRFillVariable getFillVariable()
public JRExtendedIncrementerFactory getIncrementerFactory()
public JRPercentageCalculator getPercentageCalculator()
public JRPercentageCalculator createPercentageCalculator()
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 |