Пример #1
0
 /**
  * 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());
 }
Пример #2
0
 /**
  * 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