FileDocCategorySizeDatePackage
Control.javaAPI DocJava SE 5 API2826Fri Aug 26 14:57:50 BST 2005javax.sound.sampled

Control

public abstract class Control extends Object
{@link Line Lines} often have a set of controls, such as gain and pan, that affect the audio signal passing through the line. Java Sound's Line objects let you obtain a particular control object by passing its class as the argument to a {@link Line#getControl(Control.Type) getControl} method.

Because the various types of controls have different purposes and features, all of their functionality is accessed from the subclasses that define each kind of control.

author
Kara Kytle
version
1.25, 03/12/19
see
Line#getControls
see
Line#isControlSupported
since
1.3

Fields Summary
private final Type
type
The control type.
Constructors Summary
protected Control(Type type)
Constructs a Control with the specified type.

param
type the kind of control desired

	this.type = type;
    
Methods Summary
public javax.sound.sampled.Control$TypegetType()
Obtains the control's type.

return
the control's type.

	return type;
    
public java.lang.StringtoString()
Obtains a String describing the control type and its current state.

return
a String representation of the Control.

	return new String(getType() + " Control");