|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface PaintCallback
This interface represents a function prototype for custom component paint events.
If the callback function is set for example
for Canvas.Canvas(Style, PaintCallback), it
will be called when the Canvas is painted.
If the paint callback is not specified
the default Script.paint(Component, Graphics, Style, int, int)
is called.
Canvas.Canvas(Style, PaintCallback),
Callbacks| Method Summary | |
|---|---|
void |
paint(Component c,
Graphics g,
Style style,
int width,
int height)
Called when custom component should be painted. |
| Method Detail |
|---|
void paint(Component c,
Graphics g,
Style style,
int width,
int height)
c - Instance of custom componentg - Graphics contextstyle - Style to usewidth - Width of the available areaheight - Height of the available area
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||