Package org.adempiere.apps.graph
Class GraphColumn
java.lang.Object
org.adempiere.apps.graph.GraphColumn
Value object of chart column
- Author:
- hengsin
-
Constructor Summary
ConstructorsConstructorDescriptionGraphColumn(String label, double value) Base ConstructorGraphColumn(MAchievement achievement) Single Achievement ConstructorGraphColumn(MGoal goal, BigDecimal data) Achievement Goal ConstructorGraphColumn(MMeasureCalc mc, BigDecimal data) Measure Calc ConstructorGraphColumn(MProjectType pt, BigDecimal data, int id) Project Type ConstructorGraphColumn(MRequestType rt, BigDecimal data, int id) Request Type Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet Single AchievementdoubledoublegetDate()getGoal()Get Achievement GoalintgetID()getLabel()Get MeasureCalcGet query for goaldoubledoublegetValue()voidsetColHeight(double height) voidsetColWidth(double width) voidvoidvoidsetTargetValue(double targetValue) voidsetValue(double value)
-
Constructor Details
-
GraphColumn
Base Constructor- Parameters:
label- labelvalue- value
-
GraphColumn
Single Achievement Constructor- Parameters:
achievement- achievement
-
GraphColumn
Achievement Goal Constructor- Parameters:
goal- goaldata- count
-
GraphColumn
Measure Calc Constructor- Parameters:
mc- MeasureCalc
-
GraphColumn
Request Type Constructor- Parameters:
rt- Request Typedata-id-
-
GraphColumn
Project Type Constructor- Parameters:
pt- Project Typedata-id-
-
-
Method Details
-
getGoal
Get Achievement Goal- Returns:
- achievement or null
-
getAchievement
Get Single Achievement- Returns:
- achievement or null
-
getMeasureCalc
Get MeasureCalc- Returns:
- measure
-
getRequestType
- Returns:
- MRequestType
-
getProjectType
- Returns:
- MProjectType
-
getMeasureDisplay
- Returns:
- measure display type (MGoal.MEASUREDISPLAY_*)
-
getDate
- Returns:
- date
-
getID
public int getID()- Returns:
- record id
-
getLabel
- Returns:
- column label.
-
setLabel
- Parameters:
label- The label to set.
-
setLabel
- Parameters:
date- for label.MeasureDisplay- measure display type (MGoal.MEASUREDISPLAY_*)
-
getTargetValue
public double getTargetValue()- Returns:
- targetValue.
-
setTargetValue
public void setTargetValue(double targetValue) - Parameters:
targetValue- The targetValue to set.
-
getValue
public double getValue()- Returns:
- data value
-
setValue
public void setValue(double value) - Parameters:
value- The data value to set.
-
getColWidth
public double getColWidth()- Returns:
- column width in pixels.
-
setColWidth
public void setColWidth(double width) - Parameters:
width- The column width in pixels.
-
getColHeight
public double getColHeight()- Returns:
- height in pixels.
-
setColHeight
public void setColHeight(double height) - Parameters:
height- The height in pixels.
-
getMQuery
Get query for goal- Parameters:
mGoal-- Returns:
- query
-