예제 #1
0
  /** @param value the type to set */
  public void setType(IcyColorMapType value) {
    if (type != value) {
      type = value;

      changed(IcyColorMapEventType.TYPE_CHANGED);
    }
  }
예제 #2
0
 /** called when colormap data changed */
 public void changed() {
   changed(IcyColorMapEventType.MAP_CHANGED);
 }
예제 #3
0
 /**
  * Set enabled flag.<br>
  * This flag is used to test if the color map is enabled or not.<br>
  * It is up to the developer to implement it or not.
  *
  * @param enabled the enabled to set
  */
 public void setEnabled(boolean enabled) {
   if (this.enabled != enabled) {
     this.enabled = enabled;
     changed(IcyColorMapEventType.ENABLED_CHANGED);
   }
 }