Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.control
Class FrameRateControlAdapter

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.control.FrameRateControlAdapter
All Implemented Interfaces:
javax.media.Control, javax.media.control.FrameRateControl

public class FrameRateControlAdapter
extends Object
implements javax.media.control.FrameRateControl

Provides a default implementation of FrameRateControl.

Author:
Lyubomir Marinov

Constructor Summary
FrameRateControlAdapter()
           
 
Method Summary
 Component getControlComponent()
          Gets the UI Component associated with this Control object.
 float getFrameRate()
          Gets the current output frame rate.
 float getMaxSupportedFrameRate()
          Gets the maximum supported output frame rate.
 float getPreferredFrameRate()
          Gets the default/preferred output frame rate.
 float setFrameRate(float frameRate)
          Sets the output frame rate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameRateControlAdapter

public FrameRateControlAdapter()
Method Detail

getControlComponent

public Component getControlComponent()
Gets the UI Component associated with this Control object. FrameRateControlAdapter always returns null.

Specified by:
getControlComponent in interface javax.media.Control
Returns:
the UI Component associated with this Control object
See Also:
Control.getControlComponent()

getFrameRate

public float getFrameRate()
Gets the current output frame rate. FrameRateControlAdapter always returns -1.

Specified by:
getFrameRate in interface javax.media.control.FrameRateControl
Returns:
the current output frame rate if it is known; otherwise, -1
See Also:
FrameRateControl.getFrameRate()

getMaxSupportedFrameRate

public float getMaxSupportedFrameRate()
Gets the maximum supported output frame rate. FrameRateControlAdapter always returns -1.

Specified by:
getMaxSupportedFrameRate in interface javax.media.control.FrameRateControl
Returns:
the maximum supported output frame rate if it is known; otherwise, -1
See Also:
FrameRateControl.getMaxSupportedFrameRate()

getPreferredFrameRate

public float getPreferredFrameRate()
Gets the default/preferred output frame rate. FrameRateControlAdapter always returns -1.

Specified by:
getPreferredFrameRate in interface javax.media.control.FrameRateControl
Returns:
the default/preferred output frame rate if it is known; otherwise, -1
See Also:
FrameRateControl.getPreferredFrameRate()

setFrameRate

public float setFrameRate(float frameRate)
Sets the output frame rate. FrameRateControlAdapter always returns -1.

Specified by:
setFrameRate in interface javax.media.control.FrameRateControl
Parameters:
frameRate - the output frame rate to change the current one to
Returns:
the actual current output frame rate or -1 if it is unknown or not controllable
See Also:
FrameRateControl.setFrameRate(float)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.