|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.handlers.PlayerHandler
public abstract class PlayerHandler
The Class PlayerHandler.
Field Summary | |
---|---|
protected float |
balance
The balance. |
protected PlayList |
currentPlayList
The current play list. |
protected float[] |
equalizer
The equalizer. |
protected boolean |
karaoke
The karaoke. |
protected int |
lastButtonPressed
The last button pressed. |
protected Logger |
logger
The logger. |
protected boolean |
muted
The muted. |
protected static int |
NEXT
The Constant NEXT. |
protected boolean |
paused
The paused. |
protected static int |
PLAY
The Constant PLAY. |
protected PlayListController |
playListController
The play list controller. |
protected static int |
PREVIOUS
The Constant PREVIOUS. |
protected boolean |
repeat
The repeat. |
protected static int |
SEEK
The Constant SEEK. |
protected boolean |
shuffle
The shuffle. |
protected static int |
STOP
The Constant STOP. |
protected boolean |
useNormalisation
The use normalisation. |
protected int |
volume
The volume. |
Constructor Summary | |
---|---|
protected |
PlayerHandler()
Instantiates a new player handler. |
Method Summary | |
---|---|
abstract void |
finish()
Finish. |
long |
getCurrentDuration()
Gets the current duration. |
PlayList |
getCurrentPlayList()
Gets the current play list. |
float[] |
getEqualizer()
Gets the equalizer. |
static PlayerHandler |
getInstance()
Gets the single instance of PlayerHandler. |
int |
getVolume()
Gets the volume. |
boolean |
isKaraoke()
Checks if is karaoke. |
boolean |
isMute()
Checks if is mute. |
boolean |
isPaused()
Checks if is paused. |
abstract boolean |
isPlaying()
Checks if is playing. |
boolean |
isRepeat()
Checks if is repeat. |
boolean |
isShuffle()
Checks if is shuffle. |
boolean |
isUseNormalisation()
Checks if is use normalisation. |
abstract void |
next(boolean autoNext)
Next. |
void |
notifyPlayerError(java.lang.Exception e)
Notify player error. |
abstract void |
play(boolean buttonPressed)
Play. |
abstract void |
previous()
Previous. |
abstract void |
seek(double position)
Seek. |
abstract void |
setBalance(float value)
Sets the balance. |
void |
setCurrentDuration(long currentDuration)
Sets the current duration. |
void |
setCurrentPlayList(PlayList currentPlayList)
Sets the current play list. |
void |
setDuration(long time)
Sets the duration. |
void |
setEqualizer(float[] equalizer)
Sets the equalizer. |
void |
setKaraoke(boolean karaoke)
Sets the karaoke. |
abstract void |
setMute(boolean mute)
Sets the mute. |
void |
setPlayListPositionToPlay(int pos)
Sets the play list position to play. |
void |
setRepeat(boolean enable)
Sets the repeat. |
void |
setShuffle(boolean enable)
Sets the shuffle. |
void |
setTime(long time)
Sets the time. |
void |
setUseNormalisation(boolean useNormalisation)
Sets the use normalisation. |
abstract void |
setVolume(int perCent)
Sets the volume. |
abstract void |
stop(boolean userStopped)
Stop. |
void |
volumeDown()
Volume down. |
void |
volumeUp()
Volume up. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int PREVIOUS
protected static final int PLAY
protected static final int STOP
protected static final int NEXT
protected static final int SEEK
protected int lastButtonPressed
protected boolean muted
protected Logger logger
protected PlayList currentPlayList
protected int volume
protected float balance
protected boolean useNormalisation
protected boolean shuffle
protected boolean repeat
protected boolean karaoke
protected float[] equalizer
protected boolean paused
protected PlayListController playListController
Constructor Detail |
---|
protected PlayerHandler()
Method Detail |
---|
public static PlayerHandler getInstance()
public abstract void finish()
public long getCurrentDuration()
public final PlayList getCurrentPlayList()
public final float[] getEqualizer()
public final int getVolume()
public boolean isKaraoke()
public final boolean isMute()
public abstract boolean isPlaying()
public boolean isRepeat()
public boolean isShuffle()
public boolean isUseNormalisation()
public abstract void next(boolean autoNext)
autoNext
- the auto nextpublic final void notifyPlayerError(java.lang.Exception e)
e
- the epublic abstract void play(boolean buttonPressed)
buttonPressed
- the button pressedpublic abstract void previous()
public abstract void seek(double position)
position
- the positionpublic abstract void setBalance(float value)
value
- the new balancepublic void setCurrentDuration(long currentDuration)
currentDuration
- the new current durationpublic final void setCurrentPlayList(PlayList currentPlayList)
currentPlayList
- the new current play listpublic final void setDuration(long time)
time
- the new durationpublic void setEqualizer(float[] equalizer)
equalizer
- the new equalizerpublic void setKaraoke(boolean karaoke)
karaoke
- the new karaokepublic abstract void setMute(boolean mute)
mute
- the new mutepublic final void setPlayListPositionToPlay(int pos)
pos
- the new play list position to playpublic final void setRepeat(boolean enable)
enable
- the new repeatpublic final void setShuffle(boolean enable)
enable
- the new shufflepublic void setTime(long time)
time
- the new timepublic void setUseNormalisation(boolean useNormalisation)
useNormalisation
- the new use normalisationpublic abstract void setVolume(int perCent)
perCent
- the new volumepublic abstract void stop(boolean userStopped)
userStopped
- the user stoppedpublic final void volumeDown()
public final void volumeUp()
public boolean isPaused()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |