information, disabling key events can improve performance.
Note that this setting is unique to each GameScreen instance; other GameScreens, when shown, are subject to their own setting for key events.
•public void paint(javax.microedition.lcdui.Graphics g) - Paints this GameScreen. By default, this method does nothing. It can be overridden according to application needs.
•public void flushGraphics(int x, int y, int width,
int height) – Waits until the end of the current screen refresh cycle and then flushes the specified region of the
•public void flushGraphics() - Waits until the end of the current screen refresh cycle and then flushes all of the
•public static int getDisplayColor(int color) throws IllegalArgumentException – Gets the color that will be displayed if the specified color is requested. This method enables the developer to check the manner in which RGB values are mapped to the set of distinct colors that the device can actually display. For example, with a monochrome device, this method will return either 0xFFFFFF (white) or 0x000000 (black) depending on the brightness of the specified color.
•public void playSoundEffect(SoundEffect se, int volume, int priority) - Plays the specified SoundEffect. A GameScreen's sound effects are heard only while it is the visible screen. A device capability of playing SoundEffects can be found by using the method soundEffectsSupported(). The platform's ability to play several SoundEffects simultaneously can be found by using the method getMaxSoundsSupported(). The priority specified for each request determines which sound(s) are heard when the number of simultaneous sound requests exceeds the capabilities of the device.
•public boolean soundEffectsSupported() - Checks whether the underlying platform supports SoundEffects. It returns true if SoundEffects are supported.
•public boolean backgroundMusicSupported() - Checks whether the underlying platform supports BackgroundMusic. It returns true if BackgroundMusic is supported.
•public int getMaxSoundsSupported() - Queries the underlying platform's capability to play multiple SoundEffects simultaneously.
•public void stopAllSoundEffects() - Stops all the SoundEffects that are playing. Note that this method does not affect background music.