| Method or Constructor
|
Purpose
|
void drawArc(int x, int y, int width, int height, int startAngle, int
arcAngle) |
Draws the outline of a circular or elliptical arc covering the specified rectangle.
|
void drawLine(int x1, int y1, int x2, int y2)
|
Draws a line, using the current color, between the points (x1, y1) and (x2,
y2) in this graphics.
|
void drawOval(int x, int y, int width, int height)
|
Draws the outline of an oval. |
void drawRect(int x, int y, int width, int height)
|
Draws the outline of a rectangle. |
void drawString(String str, int x, int y)
|
Draws the text given by the specified string, using this graphics context's current font and color.
|
void fillArc(int x, int y, int width, int height, int startAngle, int
arcAngle) |
Fills a circular or elliptical arc covering the specified rectangle.
|
void fillOval(int x, int y, int width, int height) |
Fills an oval bounded by the specified rectangle with the current color. |
void fillRect(int x, int y, int width, int height) |
Fills the specified rectangle. |
Color getColor(), void setColor(Color) |
Gets and sets this graphics context's current color. |
Font, getFont(),void setFont(Font font) |
Sets this graphics context's font to the specified font. |