public ColorControlAdapter(NumericControl b, NumericControl c, NumericControl s, NumericControl h, BooleanControl g, Component comp, boolean def, Control parent)METHODS
super(comp, def, parent);
brightness = b;
contrast = c;
saturation = s;
hue = h;
grayscale = g;
int n = 0;
n += (b == null) ? 0 : 1;
n += (c == null) ? 0 : 1;
n += (s == null) ? 0 : 1;
n += (h == null) ? 0 : 1;
n += (g == null) ? 0 : 1;
controls = new Control[n];
n = 0;
if (b != null)
controls[n++] = b;
if (c != null)
controls[n++] = c;
if (s != null)
controls[n++] = s;
if (h != null)
controls[n++] = h;
if (g != null)
controls[n++] = g;
|