FileDocCategorySizeDatePackage
ColorControlAdapter.javaAPI DocJMF 2.1.1e2948Mon May 12 12:20:56 BST 2003com.sun.media.controls

ColorControlAdapter

public class ColorControlAdapter extends AtomicControlAdapter implements ColorControl
A group of controls that modify the color of the video output from this player.

Fields Summary
NumericControl
brightness
VARIABLES
NumericControl
contrast
NumericControl
saturation
NumericControl
hue
BooleanControl
grayscale
Control[]
controls
Constructors Summary
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;
    
Methods Summary
public com.sun.media.controls.NumericControlgetBrightness()
Returns a brightness control object for the video output.

	return brightness;
    
public com.sun.media.controls.NumericControlgetContrast()
Returns a contrast control object for the video output.

	return contrast;
    
public javax.media.Control[]getControls()
IMPLEMENTS GroupControl

	return controls;
    
public com.sun.media.controls.BooleanControlgetGrayscale()
Returns a grayscale control object for the video output. Grayscale output can be turned on or off.

	return grayscale;
    
public com.sun.media.controls.NumericControlgetHue()
Returns a hue control object for the video output.

	return hue;
    
public com.sun.media.controls.NumericControlgetSaturation()
Returns a color saturation control object for the video output.

	return saturation;