Beispiel #1
0
 /**
  * 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
Beispiel #2
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());
 }
Beispiel #3
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
Beispiel #4
0
 /**
  * Get the color schema for this goal.
  *
  * @return the color schema
  */
 public MColorSchema getColorSchema() {
   return MColorSchema.get(getCtx(), getPA_ColorSchema_ID());
 }