IltPattern
instead.@Deprecated public interface IlPattern extends Serializable
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.
Modifier and Type | Method and Description |
---|---|
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).
|
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
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.