Package org.compiere.print
Class PrintDataFunction
java.lang.Object
org.compiere.print.PrintDataFunction
Print Data Function (Sum, Count, Average, etc) Node
- 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
Modifier and TypeFieldDescriptionstatic final char
Countstatic final char
Deviationstatic final char
Maxstatic final char
Meanstatic final char
Minstatic final char
Sumstatic final char
Variance -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add Value to Counterstatic int
getFunctionDisplayType
(char function, int displayType) Get DisplayType of functionstatic String
getFunctionName
(char function) Get Name of functionstatic String
getFunctionSymbol
(char function) Get Symbol of functiongetValue
(char function) Get Function Valuevoid
reset()
Reset ValuetoString()
String Representation
-
Field Details
-
F_SUM
public static final char F_SUMSum- See Also:
-
F_MEAN
public static final char F_MEANMean- See Also:
-
F_COUNT
public static final char F_COUNTCount- See Also:
-
F_MIN
public static final char F_MINMin- See Also:
-
F_MAX
public static final char F_MAXMax- See Also:
-
F_VARIANCE
public static final char F_VARIANCEVariance- See Also:
-
F_DEVIATION
public static final char F_DEVIATIONDeviation- See Also:
-
-
Constructor Details
-
PrintDataFunction
public PrintDataFunction()Constructor
-
-
Method Details
-
addValue
Add Value to Counter- Parameters:
s
- data
-
getValue
Get Function Value- Parameters:
function
- function constant (F_*)- Returns:
- function value
-
reset
public void reset()Reset Value -
toString
String Representation -
getFunctionSymbol
Get Symbol of function- Parameters:
function
- function constant (F_*)- Returns:
- function symbol
-
getFunctionName
Get Name of function- Parameters:
function
- function constant (F_*)- Returns:
- function name
-
getFunctionDisplayType
public static int getFunctionDisplayType(char function, int displayType) Get DisplayType of function- Parameters:
function
- function constant (F_*)displayType
- columns display type- Returns:
- display type for function
-