| java.lang.Object example.mmademo.SimplePlayerGUI
All known Subclasses: example.mmademo.SimplePlayerForm, example.mmademo.SimplePlayerCanvas,
SimplePlayerGUI | public class SimplePlayerGUI implements CommandListener,PlayerListener,ItemStateListener(Code) | | GUI functionality for SimplePlayer.
This class is used by SimplePlayerCanvas and SimplePlayerForm and
provides the actual logic.
SimplePlayerCanvas and SimplePlayerForm provide the interaction of
the main window with the user.
version: 1.10 |
KARAOKE_LINE | final public static int KARAOKE_LINE(Code) | | |
KARAOKE_LINE_COUNT | final public static int KARAOKE_LINE_COUNT(Code) | | |
KARAOKE_LINE_INDEX | final public static int KARAOKE_LINE_INDEX(Code) | | |
KARAOKE_SYLLABLE_LENGTH | final public static int KARAOKE_SYLLABLE_LENGTH(Code) | | |
backCommand | Command backCommand(Code) | | |
SimplePlayerGUI | public SimplePlayerGUI()(Code) | | Note: parent MUST be Displayable
|
changeRate | public void changeRate(boolean slowdown)(Code) | | |
changeVolume | public void changeVolume(boolean decrease)(Code) | | |
closePlayer | public void closePlayer()(Code) | | |
commandAction | public void commandAction(Command c, Displayable s)(Code) | | |
getControls | public Control[] getControls()(Code) | | |
getKaraokeStr | public String[] getKaraokeStr(int[] params)(Code) | | OUT: params:
0: number of valid strings in return array
1: index in return array of currently sung line
2: index in current line which is currently sung. if -1: nothing currently sung
3: length of syllable currently sung.
|
getLogo | public Image getLogo()(Code) | | |
getRecordControl | public RecordControl getRecordControl()(Code) | | |
getVideoControl | public VideoControl getVideoControl()(Code) | | |
hasGUIControls | public boolean hasGUIControls()(Code) | | |
hasRateControl | public boolean hasRateControl()(Code) | | |
hasTempoControl | public boolean hasTempoControl()(Code) | | |
initialize | public void initialize(String title, Parent parent)(Code) | | |
isFullScreen | public boolean isFullScreen()(Code) | | |
itemStateChanged | public void itemStateChanged(Item item)(Code) | | |
pauseApp | public synchronized void pauseApp()(Code) | | Stop the player and the display thread.
Some VM's may stop players and threads
on their own, but for consistent user
experience, it's a good idea to explicitly
stop and start resources such as player
and threads.
|
pausePlayer | public void pausePlayer()(Code) | | |
resumeApp | public synchronized void resumeApp()(Code) | | If the player was playing when the MIDlet was paused,
then the player will be restarted here.
|
setMediaTime | public void setMediaTime(long time)(Code) | | |
setParent | public void setParent(Parent parent)(Code) | | |
setSong | public void setSong(String name, Player player)(Code) | | |
setTimerInterval | public void setTimerInterval(int millis)(Code) | | |
skip | public void skip(boolean backwards)(Code) | | fast forward or fast backward
|
skipFrame | public void skipFrame(boolean back)(Code) | | |
startPlayer | public void startPlayer()(Code) | | |
stepFrame | public void stepFrame(int frames)(Code) | | |
stopAfterTime | public void stopAfterTime()(Code) | | |
toggleFullScreen | public boolean toggleFullScreen()(Code) | | |
toggleMute | public void toggleMute()(Code) | | |
togglePlayer | public void togglePlayer()(Code) | | |
transpose | public void transpose(boolean down)(Code) | | |
|
|