|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.GObject
org.gstreamer.interfaces.TunerChannel
public class TunerChannel
Nested Class Summary | |
---|---|
static class |
TunerChannel.Flags
|
static interface |
TunerChannel.FREQUENCY_CHANGED
Signal emitted when the frequency on a channel changes |
static interface |
TunerChannel.SIGNAL_CHANGED
Signal emitted when the signal strength on a channel changes |
Nested classes/interfaces inherited from class org.gstreamer.GObject |
---|
GObject.GCallback |
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject |
---|
NativeObject.Initializer |
Field Summary |
---|
Fields inherited from class org.gstreamer.lowlevel.NativeObject |
---|
defaultInit, ownsHandle |
Constructor Summary | |
---|---|
TunerChannel(NativeObject.Initializer init)
For internal gstreamer-java use only |
Method Summary | |
---|---|
void |
connect(TunerChannel.FREQUENCY_CHANGED listener)
Add a listener for frequency-changed messages. |
void |
connect(TunerChannel.SIGNAL_CHANGED listener)
Add a listener for signal-changed messages. |
void |
disconnect(TunerChannel.FREQUENCY_CHANGED listener)
Disconnect the listener for frequency-changed messages. |
void |
disconnect(TunerChannel.SIGNAL_CHANGED listener)
Disconnect the listener for signal-changed messages. |
long |
getFrequency()
Retrieves the current frequency from the given channel |
java.lang.String |
getLabel()
Retrieves the label from the given channel |
int |
getSignalStrength()
Gets the strength of the signal on this channel. |
boolean |
hasFlag(int flag)
Checks if a flag is set on this channel. |
boolean |
isTuningChannel()
Checks if the frequency of this channel can be changed |
void |
setFrequency(long frequency)
Sets a tuning frequency on the given tuner/channel. |
Methods inherited from class org.gstreamer.GObject |
---|
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, invalidate, objectFor, objectFor, ref, removeCallback, set, unref |
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
---|
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, toString |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TunerChannel(NativeObject.Initializer init)
init
- initialization dataMethod Detail |
---|
public final boolean hasFlag(int flag)
public long getFrequency()
public java.lang.String getLabel()
public void setFrequency(long frequency)
Note: this requires the given channel to be a "tuning"
channel, which can be checked with isTuningChannel()
public boolean isTuningChannel()
public int getSignalStrength()
Note: this requires the current channel to be a "tuning"
channel, i.e. a channel on which frequency can be set. This can be
checked using isTuningChannel()
public void connect(TunerChannel.FREQUENCY_CHANGED listener)
listener
- The listener to be called when the frequency changespublic void disconnect(TunerChannel.FREQUENCY_CHANGED listener)
listener
- The listener that was registered to receive the message.public void connect(TunerChannel.SIGNAL_CHANGED listener)
listener
- The listener to be called when the signal strength changespublic void disconnect(TunerChannel.SIGNAL_CHANGED listener)
listener
- The listener that was registered to receive the message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |