예제 #1
0
 /**
  * Set color of the threshold.
  *
  * @param thresholdName the threshold name which should be one of {@link Threshold}
  * @param color the RGB color to set
  */
 public void setThresholdColor(Threshold thresholdName, RGB color) {
   switch (thresholdName) {
     case HIHI:
       hihi.setColor(color);
       break;
     case HI:
       hi.setColor(color);
       break;
     case LO:
       lo.setColor(color);
       break;
     case LOLO:
       lolo.setColor(color);
     default:
       break;
   }
 }