Class GraphColumn

java.lang.Object
org.adempiere.apps.graph.GraphColumn

public class GraphColumn extends Object
Value object of chart column
Author:
hengsin
  • Constructor Details

    • GraphColumn

      public GraphColumn(String label, double value)
      Base Constructor
      Parameters:
      label - label
      value - value
    • GraphColumn

      public GraphColumn(MAchievement achievement)
      Single Achievement Constructor
      Parameters:
      achievement - achievement
    • GraphColumn

      public GraphColumn(MGoal goal, BigDecimal data)
      Achievement Goal Constructor
      Parameters:
      goal - goal
      data - 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
      data -
      id -
    • GraphColumn

      public GraphColumn(MProjectType pt, BigDecimal data, int id)
      Project Type Constructor
      Parameters:
      pt - Project Type
      data -
      id -
  • Method Details

    • 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()
      Returns:
      MRequestType
    • getProjectType

      public MProjectType getProjectType()
      Returns:
      MProjectType
    • getMeasureDisplay

      public String getMeasureDisplay()
      Returns:
      measure display type (MGoal.MEASUREDISPLAY_*)
    • getDate

      public Timestamp getDate()
      Returns:
      date
    • getID

      public int getID()
      Returns:
      record id
    • getLabel

      public String getLabel()
      Returns:
      column 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 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

      public MQuery getMQuery(MGoal mGoal)
      Get query for goal
      Parameters:
      mGoal -
      Returns:
      query