public class ReadOnlyBufferControlDelegate
extends java.lang.Object
implements javax.media.control.BufferControl
Constructor and Description |
---|
ReadOnlyBufferControlDelegate(javax.media.control.BufferControl bufferControl)
Initializes a new ReadOnlyBufferControlDelegate instance which
is to wrap a specific BufferControl and call only its getters.
|
Modifier and Type | Method and Description |
---|---|
long |
getBufferLength()
Implements
BufferControl.getBufferLength() . |
java.awt.Component |
getControlComponent()
Implements
Control.getControlComponent() . |
boolean |
getEnabledThreshold()
Implements
BufferControl.getEnabledThreshold() . |
long |
getMinimumThreshold()
Implements
BufferControl.getMinimumThreshold() . |
long |
setBufferLength(long bufferLength)
Implements
BufferControl.setBufferLength(long) . |
void |
setEnabledThreshold(boolean enabledThreshold)
Implements
BufferControl.setEnabledThreshold(boolean) . |
long |
setMinimumThreshold(long minimumThreshold)
Implements
BufferControl.setMinimumThreshold(long) . |
public ReadOnlyBufferControlDelegate(javax.media.control.BufferControl bufferControl)
bufferControl
- the BufferControl to be wrapped by the new
instancepublic long getBufferLength()
BufferControl.getBufferLength()
. Gets the length in
milliseconds of the buffering performed by the owner of the wrapped
BufferControl.getBufferLength
in interface javax.media.control.BufferControl
public java.awt.Component getControlComponent()
Control.getControlComponent()
. Gets the UI
Component representing this instance and exported by the owner
of the wrapped BufferControl.getControlComponent
in interface javax.media.Control
public boolean getEnabledThreshold()
BufferControl.getEnabledThreshold()
. Gets the
indicator of the wrapped BufferControl which determines whether
threshold calculations are enabled.getEnabledThreshold
in interface javax.media.control.BufferControl
public long getMinimumThreshold()
BufferControl.getMinimumThreshold()
. Gets the minimum
threshold in milliseconds for the buffering performed by the owner of the
wrapped BufferControl.getMinimumThreshold
in interface javax.media.control.BufferControl
public long setBufferLength(long bufferLength)
BufferControl.setBufferLength(long)
. Ignores the
request because this instance provides read-only support and returns the
value actually in effect.setBufferLength
in interface javax.media.control.BufferControl
bufferLength
- the length in milliseconds of the buffering to be
performed by the owner of the wrapped BufferControlpublic void setEnabledThreshold(boolean enabledThreshold)
BufferControl.setEnabledThreshold(boolean)
. Ignores
the set request because this instance provides read-only support.setEnabledThreshold
in interface javax.media.control.BufferControl
enabledThreshold
- true if threshold calculations are
to be enabled; otherwise, falsepublic long setMinimumThreshold(long minimumThreshold)
BufferControl.setMinimumThreshold(long)
. Ignores the
set request because this instance provides read-only support and returns
the value actually in effect.setMinimumThreshold
in interface javax.media.control.BufferControl
minimumThreshold
- the minimum threshold in milliseconds for the
buffering to be performed by the owner of the wrapped
BufferControl
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.