DecimalFormat format = new DecimalFormat("0.0");
if (type == typeV3) {
this.addSliderKey(COLOR_NOISE);
this.setSliderConfig(COLOR_NOISE, new SliderConfig(0, 20, chroma_domain, 1, false, format));
this.addSliderKey(GRAIN_NOISE);
this.setSliderConfig(GRAIN_NOISE, new SliderConfig(0, 20, luma_range, 1, false, format));
} else {
this.addSliderKey(COLOR_RADIUS);
this.setSliderConfig(COLOR_RADIUS, new SliderConfig(0, 10, chroma_domain, 1, false, format));
this.addSliderKey(COLOR_INTENSITY);
this.setSliderConfig(COLOR_INTENSITY, new SliderConfig(0, 20, chroma_range, 1, false, format));
if (type == typeV1) {
this.addSliderKey(GRAIN_RADIUS);
this.setSliderConfig(GRAIN_RADIUS, new SliderConfig(0, 10, luma_domain, 0.1, false, format));
}
this.addSliderKey(GRAIN_INTENSITY);
this.setSliderConfig(GRAIN_INTENSITY, new SliderConfig(0, 10, luma_range, 0.1, false, format));
}
}