|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The MenuPainter
interface defines high-level methods
when drawing contents of a Menu
, which consists of
MenuPage
s and PageItem
s. An implementation
of this interface is provided when constructing a Menu
.
Method Summary | |
void |
paintMenu(javax.microedition.lcdui.Graphics g,
MenuPage menu,
int x,
int y,
int width,
int height)
Paints a static menu. |
void |
paintTransition(javax.microedition.lcdui.Graphics g,
MenuPage fromMenu,
MenuPage toMenu,
int x,
int y,
int width,
int height,
int frame,
int frames,
boolean back)
Paints a transition between menus. |
Method Detail |
public void paintMenu(javax.microedition.lcdui.Graphics g, MenuPage menu, int x, int y, int width, int height)
g
- The graphics context to draw to.menu
- The menu to draw.x
- Offset x coordinate.y
- Offset y coordinate.width
- The width of the menu.height
- The height of the menu.public void paintTransition(javax.microedition.lcdui.Graphics g, MenuPage fromMenu, MenuPage toMenu, int x, int y, int width, int height, int frame, int frames, boolean back)
g
- The graphics context to draw to.fromMenu
- Source menu.toMenu
- Destination menu.x
- Offset x coordinate.y
- Offset y coordinate.width
- The width of the menu.height
- The height of the menu.frame
- Current frame (0 - frames).frames
- Maximum frames in this transition.back
- True if going back to a page, false otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |