Known Direct Subclasses
BooleanControl |
A BooleanControl provides the ability to switch between
two possible settings that affect a line's audio. |
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 . |
EnumControl |
A EnumControl provides control over a set of
discrete possible values, each represented by an object. |
FloatControl |
A FloatControl object provides control over a range of
floating-point values. |
|
Class Overview
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.
Summary
Nested Classes |
class |
Control.Type |
An instance of the Type class represents the type of
the control. |
Protected Constructors |
|
Control(Control.Type type)
Constructs a Control with the specified type.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Protected Constructors
protected
Control
(Control.Type type)
Constructs a Control with the specified type.
Parameters
type
| the kind of control desired
|
Public Methods
Obtains the control's type.
public
String
toString
()
Obtains a String describing the control type and its current state.
Returns
- a String representation of the Control.