javax.media
Interface Controls

All Known Subinterfaces:
Codec, Controls, DataSink, Demultiplexer, Effect, Multiplexer, PlugIn, PullBufferStream, PullSourceStream, PushBufferStream, PushSourceStream, Renderer, SessionManager, SourceStream, TrackControl, VideoRenderer
All Known Implementing Classes:
RTPManager

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.


Method Summary
 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.
 

Method Detail

getControls

public 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.

Returns:
the collection of object controls

getControl

public 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.

Returns:
the object that implements the control, or null.


Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.