javax.sound.sampled
abstract public class: CompoundControl [javadoc |
source]
java.lang.Object
javax.sound.sampled.Control
javax.sound.sampled.CompoundControl
A
CompoundControl
, such as a graphic equalizer, provides control
over two or more related properties, each of which is itself represented as
a
Control
.
- author:
Kara
- Kytle
- since:
1.3
-
Nested Class Summary: |
---|
public static class | CompoundControl.Type | An instance of the CompoundControl.Type inner class identifies one kind of
compound control. Static instances are provided for the
common types. |
Constructor: |
protected CompoundControl(Type type,
Control[] memberControls) {
super(type);
this.controls = memberControls;
}
Constructs a new compound control object with the given parameters. Parameters:
type - the type of control represented this compound control object
memberControls - the set of member controls
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.sound.sampled.CompoundControl Detail: |
public Control[] getMemberControls() {
Control[] localArray = new Control[controls.length];
for (int i = 0; i < controls.length; i++) {
localArray[i] = controls[i];
}
return localArray;
}
Returns the set of member controls that comprise the compound control. |
public String toString() {
StringBuffer buf = new StringBuffer();
for (int i = 0; i < controls.length; i++) {
if (i != 0) {
buf.append(", ");
if ((i + 1) == controls.length) {
buf.append("and ");
}
}
buf.append(controls[i].getType());
}
return new String(getType() + " Control containing " + buf + " Controls.");
}
Provides a string representation of the control |