|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.mp3.MediaPlayerComponent
This class sets up JPanel with MediaPlayer on it, and takes care of GUI MediaPlayer events.
Constructor Summary | |
MediaPlayerComponent()
Constructs a new MediaPlayerComponent. |
Method Summary | |
static void |
audioFileDoubleClicked()
Call this when a audio file in the PlayList has been doubleclicked. |
javax.swing.JPanel |
getMediaPanel()
|
static void |
launchAudio(java.io.File toPlay)
call this when you want to launch a file to play. |
void |
playComplete()
playComplete - signifies when an audio file has finished playing Implements one method of BasicPlayerListener Interface. |
void |
refresh()
Called when a UI refresh event has occurred. |
void |
setUpSeek(int lengthInFrames)
setUpSeek - called before playing a audio file - gets the size of the audio file in frames - sets the maximum slider value Implements one method of AudioPlayerListener Interface. |
void |
updateAudioPosition(int value)
Notification that the time position of the audio file has been updated. |
void |
updateTheme()
Update any required theme settings, such as colors or images. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MediaPlayerComponent()
Method Detail |
public void updateTheme()
ThemeObserver
updateTheme
in interface ThemeObserver
public javax.swing.JPanel getMediaPanel()
public static void launchAudio(java.io.File toPlay)
public void playComplete()
playComplete
in interface AudioPlayerListener
public void setUpSeek(int lengthInFrames)
setUpSeek
in interface AudioPlayerListener
public static void audioFileDoubleClicked()
public void updateAudioPosition(int value)
AudioPlayerListener
updateAudioPosition
in interface AudioPlayerListener
value
- the new position of the audio file in its
playbackpublic void refresh()
RefreshListener
refresh
in interface RefreshListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |