javax.media
接口 Controls

所有已知子接口:
Codec, DataSink, Demultiplexer, Effect, Module, Multiplexer, PlugIn, Renderer
所有已知实现类:
BasicCodec, BasicFilterModule, BasicModule, BasicMuxModule, BasicPlugIn, BasicRendererModule, BasicSinkModule, BasicSourceModule, BasicTrackControl

public interface Controls

Controls provides an interface for obtaining objects by interface or class name. This is useful in the case where support for a particular interface cannot be determined at runtime, or where a different object is required to implement the behavior. The object returned from getControl is assumed to control the object that getControl was invoked on.


方法摘要
 java.lang.Object getControl(java.lang.String controlType)
          Obtain the object that implements the specified Class or Interface The full class or interface name must be used.
 java.lang.Object[] getControls()
          Obtain the collection of objects that control the object that implements this interface.
 

方法详细信息

getControls

java.lang.Object[] getControls()
Obtain the collection of objects that control the object that implements this interface.

If no controls are supported, a zero length array is returned.

返回:
the collection of object controls

getControl

java.lang.Object getControl(java.lang.String controlType)
Obtain the object that implements the specified Class or Interface The full class or interface name must be used.

If the control is not supported then null is returned.

返回:
the object that implements the control, or null.