| java.lang.Object com.sun.midp.lcdui.GameCanvasLFImpl
GameCanvasLFImpl | public class GameCanvasLFImpl (Code) | | This is the look & feel implementation for GameCanvas.
|
GameCanvasLFImpl | public GameCanvasLFImpl(GameCanvas c)(Code) | | Create new implementation instance for the given GameCanvas
Parameters: c - GameCanvas instance to create the implementation for |
drawBuffer | public void drawBuffer(Graphics g)(Code) | | Render the off-screen buffer content to the Graphics object
Parameters: g - the Graphics object to render off-screen buffer content |
flushGraphics | public void flushGraphics()(Code) | | Flushes the off-screen buffer to the display. The size
of the flushed area is equal to the size of the GameCanvas.
|
flushGraphics | public void flushGraphics(int x, int y, int width, int height)(Code) | | Flushes the specified region of the off-screen buffer to the display.
Parameters: x - the left edge of the region to be flushed Parameters: y - the top edge of the region to be flushed Parameters: width - the width of the region to be flushed Parameters: height - the height of the region to be flushed |
getGraphics | public Graphics getGraphics()(Code) | | Obtains the Graphics object for rendering a GameCanvas. The returned
Graphics object renders to the off-screen buffer belonging to this
GameCanvas.
IMPL_NOTE: The dimensions of the Graphics object are explicitly
set to GameCanvas size, since off-screen buffer larger than
GameCanvas can be used, while some JSR clients need to translate
the coordinates regarding the GameCanvas size.
Anyway if GameCanvas has zero width or height, the Graphics
dimensions are set to entire off-screen buffer.
the Graphics object that renders to current GameCanvas |
getKeyStates | public int getKeyStates()(Code) | | Gets the states of the physical game keys.
An integer containing the key state information (one bit perkey), or 0 if the GameCanvas is not currently shown. |
lCallSizeChanged | public void lCallSizeChanged(int w, int h)(Code) | | Handle screen size change event to update internal
state of the GameCanvas accordingly
Parameters: w - new screen width Parameters: h - new screen height |
|
|