JavaTM 2 Platform
Standard Ed. 6

javax.sound.sampled
类 Control

java.lang.Object
  继承者 javax.sound.sampled.Control
直接已知子类:
BooleanControl, CompoundControl, EnumControl, FloatControl

public abstract class Control
extends Object

Line 常常具有一个控件(如 gain 和 pan)集合,这些控件都会影响通过行传递的音频信号。Java Sound 的 Line 对象让您通过将其类作为参数传入 getControl 方法来获得特定的控件对象。

因为各种类型的控件有着不同的目的和特性,所以可以从定义每种控件的子类访问它们的所有功能。

从以下版本开始:
1.3
另请参见:
Line.getControls(), Line.isControlSupported(javax.sound.sampled.Control.Type)

嵌套类摘要
static class Control.Type
          Type 类的实例表示控件的类型。
 
构造方法摘要
protected Control(Control.Type type)
          构造具有指定类型的控件。
 
方法摘要
 Control.Type getType()
          获得控件的类型。
 String toString()
          获得描述控件类型及其当前状态的 String。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Control

protected Control(Control.Type type)
构造具有指定类型的控件。

参数:
type - 所需控件的种类
方法详细信息

getType

public Control.Type getType()
获得控件的类型。

返回:
控件类型。

toString

public String toString()
获得描述控件类型及其当前状态的 String。

覆盖:
Object 中的 toString
返回:
控件的字符串表示形式。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策