コード例 #1
0
ファイル: MGoal.java プロジェクト: metasfresh/metasfresh
 /**
  * Get Color
  *
  * @return color - white if no target
  */
 public Color getColor() {
   if (m_color == null) {
     if (getMeasureTarget().signum() == 0) m_color = Color.white;
     else m_color = MColorSchema.getColor(getCtx(), getPA_ColorSchema_ID(), getPercent());
   }
   return m_color;
 } //	getColor
コード例 #2
0
ファイル: MGoal.java プロジェクト: WilkerDiaz/Compiere
 /**
  * Get the color schema for this goal.
  *
  * @return the color schema, or null if the measure targer is 0
  */
 public MColorSchema getColorSchema() {
   return (getMeasureTarget().signum() == 0)
       ? null
       : MColorSchema.get(getCtx(), getPA_ColorSchema_ID());
 }
コード例 #3
0
ファイル: MGoal.java プロジェクト: WilkerDiaz/Compiere
 /**
  * Get Color
  *
  * @return color - white if no target
  */
 public Color getColor() {
   if (getMeasureTarget().signum() == 0) return Color.white;
   else return MColorSchema.getColor(getCtx(), getPA_ColorSchema_ID(), getPercent());
 } //	getColor
コード例 #4
0
ファイル: MGoal.java プロジェクト: metasfresh/metasfresh
 /**
  * Get the color schema for this goal.
  *
  * @return the color schema
  */
 public MColorSchema getColorSchema() {
   return MColorSchema.get(getCtx(), getPA_ColorSchema_ID());
 }