|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IltPattern instead.
public interface IlPattern
This class describes a pattern that can be used to fill a 2D area.
When an area is drawn, the pattern is drawn in the foreground color,
and the remainder of the area is drawn in the background color.
If the background color is null, it means that it is
transparent.
| Method Summary | |
|---|---|
void |
fillPolygon(Graphics g,
AffineTransform t,
IlIntPolygon polygon,
Color foreground,
Color background)
Deprecated. Fills a polygon. |
void |
fillRect(Graphics g,
AffineTransform t,
int x1,
int y1,
int x2,
int y2,
Color foreground,
Color background)
Deprecated. Fills a rectangle with corners (x1,y1) and (x2,y2). |
| Method Detail |
|---|
void fillRect(Graphics g,
AffineTransform t,
int x1,
int y1,
int x2,
int y2,
Color foreground,
Color background)
g - The Graphics where the pattern will be drawn.t - The transformer of the view, normally null.
Note: It is assumed that t has already been
applied to x1, y1, x2, y2.
x1 - The upper left corner of the rectangle.y1 - The upper left corner of the rectangle.x2 - The lower left corner of the rectangle.y2 - The lower left corner of the rectangle.foreground - The foreground color.background - The background color, or null.
void fillPolygon(Graphics g,
AffineTransform t,
IlIntPolygon polygon,
Color foreground,
Color background)
g - The Graphics where the pattern will be drawn.t - The transformer of the view, normally null.
Note: It is assumed that t has already been
applied to x1, y1, x2, y2.
polygon - The polygon to be filled.foreground - The foreground color.background - The background color, or null.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||