|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TrackState>
ccs.audio.TrackState
public enum TrackState
The state of the currently-playing track: the GUI should reflect this. It doubles as the state of the controller. If there is no current track, then the controller is IDLE (by definition).
Enum Constant Summary | |
---|---|
ANALYSING
Determining what kind of audio data we're dealing with. |
|
BUFFERING
Downloading track data. |
|
CONNECTING
Opening the track data stream. |
|
FAULT
Stuff happens. |
|
IDLE
Nothing happening. |
|
PAUSED
Paused. |
|
READY
Ready to play. |
|
RUNNING
Track is running, ie. playing. |
|
RUNNINGEMPTY
This is a pseudostate: the Drive-train may indicate a transition to this state, but it'll actually stay in state RUNNING. |
Method Summary | |
---|---|
java.lang.String |
getI18Name()
Returns the I18N code for the name of this state. |
static TrackState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TrackState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TrackState FAULT
public static final TrackState IDLE
public static final TrackState CONNECTING
public static final TrackState BUFFERING
public static final TrackState ANALYSING
public static final TrackState READY
public static final TrackState PAUSED
public static final TrackState RUNNING
public static final TrackState RUNNINGEMPTY
Method Detail |
---|
public static TrackState[] values()
for (TrackState c : TrackState.values()) System.out.println(c);
public static TrackState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic final java.lang.String getI18Name()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |