|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RectanglePainter
This painter paints a rectangle on a java.awt.Graphics.
Method Summary | |
---|---|
void |
paintRectangle(java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
Paints a rectangle on the given graphics. |
void |
setLabel(java.lang.String label)
Sets the label that has to be painted in the rectangle. |
Method Detail |
---|
void paintRectangle(java.awt.Graphics graphics, int x, int y, int width, int height)
graphics
- The graphics on which the rectangle should be painted.x
- The x-position of the rectangle on the graphics.y
- The y-position of the rectangle on the graphics.width
- The width of the rectangle.height
- The height of the rectangle.void setLabel(java.lang.String label)
label
- The label that has to be painted in the middle of the rectangle.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |