*/
public ColorRange(FloatRange hue, FloatRange sat, FloatRange bri,
FloatRange alpha, FloatRange black, FloatRange white, String name) {
super();
hueConstraint = new GenericSet<FloatRange>(hue != null ? hue
: new FloatRange(0, 1));
saturationConstraint = new GenericSet<FloatRange>(sat != null ? sat
: new FloatRange(0, 1));
brightnessConstraint = new GenericSet<FloatRange>(bri != null ? bri
: new FloatRange(0, 1));
alphaConstraint = new GenericSet<FloatRange>(alpha != null ? alpha
: new FloatRange(1, 1));
if (black == null) {
this.black = new FloatRange(0, 0);
} else {
this.black = black;
}
if (white == null) {
this.white = new FloatRange(1, 1);
} else {
this.white = white;
}
this.name = name != null ? name : "untitled" + (UNTITLED_ID++);
}