|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.crosstabs.fill.calculation.MeasureDefinition.MeasureValue
public class MeasureDefinition.MeasureValue
An accumulated value of a crosstab measure.
Field Summary |
---|
Fields inherited from interface net.sf.jasperreports.engine.fill.JRCalculable |
---|
HELPER_COUNT, HELPER_SIZE, HELPER_SUM, HELPER_VARIANCE |
Constructor Summary | |
---|---|
MeasureDefinition.MeasureValue()
Initializes the value. |
Method Summary | |
---|---|
void |
addValue(MeasureDefinition.MeasureValue measureValue)
Accumulates another measure value. |
void |
addValue(java.lang.Object addValue)
Accumulates a value. |
JRCalculable |
getHelperVariable(byte helperType)
Returns a helper variable. |
java.lang.Object |
getIncrementedValue()
Returns the incremented value of the calculable object. |
java.lang.Object |
getValue()
Returns the value of the calculable object. |
protected void |
init()
|
boolean |
isInitialized()
Returns true if and only if the calculable object was only initialized and not incremented. |
MeasureDefinition.MeasureValue |
setHelper(MeasureDefinition.MeasureValue helperVariable,
byte type)
Sets a helper variable. |
void |
setInitialized(boolean isInitialized)
Sets the initialized flag for this calculable object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MeasureDefinition.MeasureValue()
Method Detail |
---|
protected void init()
public void addValue(java.lang.Object addValue) throws JRException
addValue
- the value
JRException
public void addValue(MeasureDefinition.MeasureValue measureValue) throws JRException
This is used for total calculations, when two accumulated values are combined into a total.
measureValue
- the measure value
JRException
public java.lang.Object getValue()
JRCalculable
getValue
in interface JRCalculable
public java.lang.String toString()
toString
in class java.lang.Object
public MeasureDefinition.MeasureValue setHelper(MeasureDefinition.MeasureValue helperVariable, byte type)
helperVariable
- the helper variabletype
- the helper type
public boolean isInitialized()
JRCalculable
true
if and only if the calculable object was only initialized and not incremented.
isInitialized
in interface JRCalculable
true
if and only if the calculable object was only initialized and not incrementedpublic java.lang.Object getIncrementedValue()
JRCalculable
getIncrementedValue
in interface JRCalculable
public JRCalculable getHelperVariable(byte helperType)
JRCalculable
getHelperVariable
in interface JRCalculable
helperType
- the desired helper variable type
public void setInitialized(boolean isInitialized)
JRCalculable
setInitialized
in interface JRCalculable
isInitialized
- the initialized flagJRCalculable.isInitialized()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |