Package org.adempiere.apps.graph
Class GraphColumn
- java.lang.Object
-
- org.adempiere.apps.graph.GraphColumn
-
public class GraphColumn extends Object
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description GraphColumn(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MAchievementgetAchievement()Get Single AchievementdoublegetColHeight()doublegetColWidth()TimestampgetDate()MGoalgetGoal()Get Achievement GoalintgetID()StringgetLabel()MMeasureCalcgetMeasureCalc()Get MeasureCalcStringgetMeasureDisplay()MQuerygetMQuery(MGoal mGoal)MProjectTypegetProjectType()MRequestTypegetRequestType()doublegetTargetValue()doublegetValue()voidsetColHeight(double height)voidsetColWidth(double width)voidsetLabel(String label)voidsetLabel(Timestamp date, String MeasureDisplay)voidsetTargetValue(double targetValue)voidsetValue(double value)
-
-
-
Constructor Detail
-
GraphColumn
public GraphColumn(String label, double value)
Base Constructor- Parameters:
label- labelvalue- value
-
GraphColumn
public GraphColumn(MAchievement achievement)
Single Achievement Constructor- Parameters:
achievement- achievement
-
GraphColumn
public GraphColumn(MGoal goal, BigDecimal data)
Achievement Goal Constructor- Parameters:
goal- goaldata- count
-
GraphColumn
public GraphColumn(MMeasureCalc mc, BigDecimal data)
Measure Calc Constructor- Parameters:
mc- MeasureCalc
-
GraphColumn
public GraphColumn(MRequestType rt, BigDecimal data, int id)
Request Type Constructor- Parameters:
rt- Request Type
-
GraphColumn
public GraphColumn(MProjectType pt, BigDecimal data, int id)
Project Type Constructor- Parameters:
pt- Project Type
-
-
Method Detail
-
getGoal
public MGoal getGoal()
Get Achievement Goal- Returns:
- achievement or null
-
getAchievement
public MAchievement getAchievement()
Get Single Achievement- Returns:
- achievement or null
-
getMeasureCalc
public MMeasureCalc getMeasureCalc()
Get MeasureCalc- Returns:
- measure
-
getRequestType
public MRequestType getRequestType()
-
getProjectType
public MProjectType getProjectType()
-
getMeasureDisplay
public String getMeasureDisplay()
-
getDate
public Timestamp getDate()
-
getID
public int getID()
-
getLabel
public String getLabel()
- Returns:
- Returns the label.
-
setLabel
public void setLabel(String label)
- Parameters:
label- The label to set.
-
setLabel
public void setLabel(Timestamp date, String MeasureDisplay)
- Parameters:
date- for label.MeasureDisplay- measure display
-
getTargetValue
public double getTargetValue()
- Returns:
- Returns the targetValue.
-
setTargetValue
public void setTargetValue(double targetValue)
- Parameters:
targetValue- The targetValue to set.
-
getValue
public double getValue()
- Returns:
- Returns the data value.
-
setValue
public void setValue(double value)
- Parameters:
value- The data value to set.
-
getColWidth
public double getColWidth()
- Returns:
- Returns the column width in pixels.
-
setColWidth
public void setColWidth(double width)
- Parameters:
width- The column width in pixels.
-
getColHeight
public double getColHeight()
- Returns:
- Returns the height in pixels.
-
setColHeight
public void setColHeight(double height)
- Parameters:
height- The height in pixels.
-
-