Motorola C550 用户手册
![Motorola](https://files.manualsbrain.com/attachments/83de88ba2280e7232128e8931d7cbd2a38dcc654/common/fit/150/50/0293f422c4d32e7e0f777d5e11bc33c83ea5627f71ddf155374c02a23d9a/brand_logo.png)
information, disabling key events can improve performance.
Note that this setting is unique to each GameScreen instance; other GameScreens,
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.
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 off-screen buffer to the display driver. This method
does not return until that region of the buffer has been completely flushed. The pixels
of the off-screen buffer are not changed as a result of the flush operation. Upon
of the off-screen buffer are not changed as a result of the flush operation. Upon
returning from this method, the application may immediately begin to render the next
frame using the same buffer.
frame using the same buffer.
•
public void flushGraphics()
- Waits until the end of the current screen
refresh cycle and then flushes all of the off-screen buffer to the display driver. This
method does not return until the entire buffer has been completely flushed. The pixels
method does not return until the entire buffer has been completely flushed. The pixels
of the off-screen buffer are not changed as a result of the flush operation. Upon
returning from this method, the app may immediately begin to render the next frame
using the same buffer.
returning from this method, the app may immediately begin to render the next frame
using the same buffer.
•
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
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.
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
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
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.
supported.
•
public boolean backgroundMusicSupported()
- Checks
whether the underlying platform supports BackgroundMusic. It returns true if
BackgroundMusic is supported.
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.