Package org.compiere.print
Class PrintDataFunction
- java.lang.Object
-
- org.compiere.print.PrintDataFunction
-
public class PrintDataFunction extends Object
Print Data Function- Version:
- $Id: PrintDataFunction.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1789279 ] DisplayType for group columns are incorect
-
-
Field Summary
Fields Modifier and Type Field Description static char
F_COUNT
Countstatic char
F_DEVIATION
Deviationstatic char
F_MAX
Maxstatic char
F_MEAN
Meanstatic char
F_MIN
Minstatic char
F_SUM
Sumstatic char
F_VARIANCE
Variance
-
Constructor Summary
Constructors Constructor Description PrintDataFunction()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(BigDecimal bd)
Add Value to Counterstatic int
getFunctionDisplayType(char function, int displayType)
Get DisplayType of functionstatic String
getFunctionName(char function)
Get Function Name of functionstatic String
getFunctionSymbol(char function)
Get Function Symbol of functionBigDecimal
getValue(char function)
Get Function Valuevoid
reset()
Reset ValueString
toString()
String Representation
-
-
-
Field Detail
-
F_SUM
public static final char F_SUM
Sum- See Also:
- Constant Field Values
-
F_MEAN
public static final char F_MEAN
Mean- See Also:
- Constant Field Values
-
F_COUNT
public static final char F_COUNT
Count- See Also:
- Constant Field Values
-
F_MIN
public static final char F_MIN
Min- See Also:
- Constant Field Values
-
F_MAX
public static final char F_MAX
Max- See Also:
- Constant Field Values
-
F_VARIANCE
public static final char F_VARIANCE
Variance- See Also:
- Constant Field Values
-
F_DEVIATION
public static final char F_DEVIATION
Deviation- See Also:
- Constant Field Values
-
-
Method Detail
-
addValue
public void addValue(BigDecimal bd)
Add Value to Counter- Parameters:
bd
- data
-
getValue
public BigDecimal getValue(char function)
Get Function Value- Parameters:
function
- function- Returns:
- function value
-
reset
public void reset()
Reset Value
-
toString
public String toString()
String Representation
-
getFunctionSymbol
public static String getFunctionSymbol(char function)
Get Function Symbol of function- Parameters:
function
- function- Returns:
- function symbol
-
getFunctionName
public static String getFunctionName(char function)
Get Function Name of function- Parameters:
function
- function- Returns:
- function name
-
getFunctionDisplayType
public static int getFunctionDisplayType(char function, int displayType)
Get DisplayType of function- Parameters:
function
- functiondisplayType
- columns display type- Returns:
- function name
-
-