|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draws a line, using the foreground color, between the points ( x1, y1) and (x2, y2). |
void |
drawRect(int x,
int y,
int w,
int h,
boolean drawfill)
Draws or fills a rectangle specified by the arguments. |
void |
drawText(String string,
int x,
int y,
int flags)
Draws the given string, using the receiver's current font and foreground color. |
void |
setColor(int id,
boolean fgbg)
Sets the receiver's foreground/background color to the system color specified by the argument, or to the default system color for the control if the argument is -1. |
| Method Detail |
public void drawLine(int x1,
int y1,
int x2,
int y2)
x1, y1) and (x2, y2).
x1 - the first point's x coordinatey1 - the first point's y coordinatex2 - the second point's x coordinatey2 - the second point's y coordinate
public void drawRect(int x,
int y,
int w,
int h,
boolean drawfill)
x - the x coordinate of the rectangle to be filledy - the y coordinate of the rectangle to be filledw - the width of the rectangle to be filledh - the height of the rectangle to be filleddrawfill - false=draw, true=fill
public void drawText(String string,
int x,
int y,
int flags)
flags includes DRAW_TRANSPARENT,
then the background of the rectangular area where the text is being
drawn will not be modified, otherwise it will be filled with the
receiver's background color.
The parameter flags may be a combination of:
string - the string to be drawnx - the x coordinate of the top left corner of the rectangular area where the text is to be drawny - the y coordinate of the top left corner of the rectangular area where the text is to be drawnflags - the flags specifing how to process the text
IllegalArgumentException - SWTException -
public void setColor(int id,
boolean fgbg)
id - the new system color value (or -1)fgbg - if true/false=set foreground/background color
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||