|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.crosstabs.fill.JRFillCrosstabMeasure
public class JRFillCrosstabMeasure
| Field Summary | |
|---|---|
protected JRExtendedIncrementerFactory |
incrementerFactory
|
protected JRCrosstabMeasure |
parentMeasure
|
protected JRPercentageCalculator |
percentageCalculator
|
protected JRFillVariable |
variable
|
| Fields inherited from interface net.sf.jasperreports.crosstabs.JRCrosstabMeasure |
|---|
PERCENTAGE_TYPE_GRAND_TOTAL, PERCENTAGE_TYPE_NONE |
| Constructor Summary | |
|---|---|
JRFillCrosstabMeasure(JRCrosstabMeasure measure,
JRFillCrosstabObjectFactory factory)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
JRPercentageCalculator |
createPercentageCalculator()
|
byte |
getCalculation()
Deprecated. Replaced by getCalculationValue(). |
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. |
byte |
getPercentageOfType()
Deprecated. Replaced by getPercentageType(). |
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 JRCrosstabMeasureJRCrosstabMeasure.getVariable()public java.lang.String getValueClassName()
JRCrosstabMeasure
getValueClassName in interface JRCrosstabMeasurepublic java.lang.Class getValueClass()
JRCrosstabMeasure
getValueClass in interface JRCrosstabMeasurepublic JRExpression getValueExpression()
JRCrosstabMeasure
getValueExpression in interface JRCrosstabMeasurepublic byte getCalculation()
getCalculationValue().
getCalculation 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()
JRCrosstabMeasure
getIncrementerFactoryClass in interface JRCrosstabMeasureJRCrosstabMeasure.getIncrementerFactoryClassName()public byte getPercentageOfType()
getPercentageType().
getPercentageOfType 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 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()
JRCrosstabMeasure
getPercentageCalculatorClassName in interface JRCrosstabMeasurepublic java.lang.Class getPercentageCalculatorClass()
JRCrosstabMeasure
getPercentageCalculatorClass in interface JRCrosstabMeasurepublic java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||