|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--JavaTron.AudioTronUI
AudioTron user interface class. Pretty basic right now, simple ui with no true state.
| Field Summary | |
static JavaTron.AudioTronState |
at
|
| Fields inherited from interface JavaTron.AudioTronListener |
STATE_PAUSED, STATE_PLAYING, STATE_STOPPED, STATE_UNKNOWN |
| Constructor Summary | |
AudioTronUI(JavaTron.AudioTronState at_)
AudioTronUI constructor |
|
| Method Summary | |
protected void |
about()
Handler for the about button being pushed |
void |
actionPerformed(java.awt.event.ActionEvent e)
React to an actionPerformed (button push) |
void |
currentSong(JavaTron.AudioTronSong song)
Notification of the details of the current song playing |
void |
go()
Call this to initialize the UI and show it |
void |
itemStateChanged(java.awt.event.ItemEvent e)
React to an itemStateChanged event (checkboxes) |
static void |
main(java.lang.String[] args)
Main method - start of the program |
void |
mute(boolean muted_)
Notification of mute state |
protected static javax.swing.JLabel |
myJLabel(java.lang.String mlabel)
Create a JLabel but make the font plain instead of super ugly BOLD |
void |
newSongQueue(java.util.Enumeration songList)
Notification that a new song queue is available |
void |
nextSong(JavaTron.AudioTronSong song)
Notification of the details of the next song to be played |
void |
random(boolean random_)
Notification of random state |
void |
repeat(boolean repeat_)
Notification of repeat state |
void |
songAdded(JavaTron.AudioTronSong song)
Notification that a song has been added to the end of the playlist |
void |
songUpdated(JavaTron.AudioTronSong song)
Notification that information about a particular song has been updated |
void |
state(int state)
Notification of playing state. |
void |
status(java.lang.String status_,
boolean longRunning)
Notification of the AudioTron "controller enginer" status. |
void |
version(java.lang.String version)
Notification of AudioTron version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static JavaTron.AudioTronState at
| Constructor Detail |
public AudioTronUI(JavaTron.AudioTronState at_)
at_ - an initialized AudioTron component| Method Detail |
public void go()
protected static javax.swing.JLabel myJLabel(java.lang.String mlabel)
protected void about()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - the ActionEvent that was sentpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenere - the ItemEventpublic void mute(boolean muted_)
AudioTronListener
mute in interface AudioTronListenermuted_ - true if muted, false otherwisepublic void repeat(boolean repeat_)
AudioTronListener
repeat in interface AudioTronListenerrepeat_ - true if repeat is set, false otherwisepublic void random(boolean random_)
AudioTronListener
random in interface AudioTronListenerrandom_ - true if random is set, false otherwisepublic void state(int state)
AudioTronListener
state in interface AudioTronListenerstate - can be one of AudioTronListener.STATE_UNKNOWN,
AudioTronListener.STATE_PLAYING, AudioTronListener.STATE_PAUSED,
AudioTronListener.STATE_STOPPEDpublic void version(java.lang.String version)
AudioTronListener
version in interface AudioTronListenerversion - The AudioTron version as reported by the AudioTron webpagepublic void newSongQueue(java.util.Enumeration songList)
AudioTronListener
newSongQueue in interface AudioTronListenerpublic void songAdded(JavaTron.AudioTronSong song)
AudioTronListener
songAdded in interface AudioTronListenersong - the song that was addedpublic void currentSong(JavaTron.AudioTronSong song)
AudioTronListener
currentSong in interface AudioTronListenersong - the current song playingpublic void nextSong(JavaTron.AudioTronSong song)
AudioTronListener
nextSong in interface AudioTronListenersong - the next song to playpublic void songUpdated(JavaTron.AudioTronSong song)
AudioTronListener
songUpdated in interface AudioTronListenersong - the song that is being updated (it is gauranteed to have
the title and index information filled in
public void status(java.lang.String status_,
boolean longRunning)
AudioTronListener
status in interface AudioTronListenerstatus_ - a string that indicates what the "engine" is doinglongRunning - this value is set if the current operation is long
running. In the case that it is long running,
status will be called repeatedly (likely with
the same value) during the long running operation.public static void main(java.lang.String[] args)
args - command line args: [ipaddress] [name] [password]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||