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 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.
Line#getControls
, Line#isControlSupported
Modifier and Type | Class and Description |
---|---|
public static class | Control.
An instance of the |
Modifier and Type | Field and Description |
---|---|
private final Control. | type
The control type. |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public Control. | |
public String | Returns: a string representation of the controlOverrides java. Returns a string representation of the control. |
type | back to summary |
---|---|
private final Control. The control type. |
Control | back to summary |
---|---|
protected Control(Control. Constructs a control with the specified type. |
getType | back to summary |
---|---|
public Control. Obtains the control's type. |
toString | back to summary |
---|---|
public String toString() Overrides java. Returns a string representation of the control. |
Type
class represents the type of the control.
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public final boolean | Returns: true if the specified object is equal to this control
type; false otherwisethe reference object with which to compare obj)Overrides java. Indicates whether the specified object is equal to this control type,
returning |
public final int | Returns: a hash code value for this control typeOverrides java. Returns a hash code value for this control type. |
public final String | Returns: a string representation of the control typeOverrides java. Returns type's name as the string representation of the control type. |
name | back to summary |
---|---|
private final String name Type name. |
Type | back to summary |
---|---|
protected Type(String name) Constructs a new control type with the name specified. The name should be a descriptive string appropriate for labelling the control in an application, such as "Gain" or "Balance".
|
equals | back to summary |
---|---|
public final boolean equals(Object obj) Overrides java. Indicates whether the specified object is equal to this control type,
returning |
hashCode | back to summary |
---|---|
public final int hashCode() Overrides java. Returns a hash code value for this control type.
|
toString | back to summary |
---|---|
public final String toString() Overrides java. Returns type's name as the string representation of the control type. |