Package javazoom.jlgui.basicplayer
Class BasicPlayerEvent
- java.lang.Object
-
- javazoom.jlgui.basicplayer.BasicPlayerEvent
-
public class BasicPlayerEvent extends java.lang.Object
This class implements player events.
-
-
Constructor Summary
Constructors Constructor Description BasicPlayerEvent(java.lang.Object source, int code, int position, double value, java.lang.Object desc)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Return code of the event triggered.java.lang.Object
getDescription()
Return description.int
getPosition()
Return position in the stream when event occured.java.lang.Object
getSource()
double
getValue()
Return value related to event triggered.java.lang.String
toString()
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
OPENING
public static final int OPENING
- See Also:
- Constant Field Values
-
OPENED
public static final int OPENED
- See Also:
- Constant Field Values
-
PLAYING
public static final int PLAYING
- See Also:
- Constant Field Values
-
STOPPED
public static final int STOPPED
- See Also:
- Constant Field Values
-
PAUSED
public static final int PAUSED
- See Also:
- Constant Field Values
-
RESUMED
public static final int RESUMED
- See Also:
- Constant Field Values
-
SEEKING
public static final int SEEKING
- See Also:
- Constant Field Values
-
SEEKED
public static final int SEEKED
- See Also:
- Constant Field Values
-
EOM
public static final int EOM
- See Also:
- Constant Field Values
-
PAN
public static final int PAN
- See Also:
- Constant Field Values
-
GAIN
public static final int GAIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BasicPlayerEvent
public BasicPlayerEvent(java.lang.Object source, int code, int position, double value, java.lang.Object desc)
Constructor- Parameters:
source
- of the eventcode
- of the enventposition
- optional stream positionvalue
- opitional control valuedesc
- optional description
-
-
Method Detail
-
getCode
public int getCode()
Return code of the event triggered.- Returns:
-
getPosition
public int getPosition()
Return position in the stream when event occured.- Returns:
-
getValue
public double getValue()
Return value related to event triggered.- Returns:
-
getDescription
public java.lang.Object getDescription()
Return description.- Returns:
-
getSource
public java.lang.Object getSource()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-