public static class IltPattern.PatternWrapper extends IltPattern
Internal use only !
IltPattern.PatternWrapper, IltPattern.Solid
Modifier and Type | Field and Description |
---|---|
protected IlPattern |
original |
Solid
Constructor and Description |
---|
PatternWrapper(IlPattern p) |
Modifier and Type | Method and Description |
---|---|
void |
fillPolygon(Graphics g,
AffineTransform t,
IlIntPolygon polygon,
Color foreground,
Color background)
Fills a polygon.
|
void |
fillRect(Graphics g,
AffineTransform t,
int x1,
int y1,
int x2,
int y2,
Color foreground,
Color background)
Fills a rectangle with corners (x1,y1) and
(x2,y2).
|
Paint |
getPaint(Color foreground,
Color background)
This method returns an instance of
Paint interface that
should be used to fill a 2D area with the specified pattern. |
equals, hashCode, NewGridPattern, NewSkewGridPattern, NewViewsPattern
protected IlPattern original
public PatternWrapper(IlPattern p)
public void fillRect(Graphics g, AffineTransform t, int x1, int y1, int x2, int y2, Color foreground, Color background)
IlPattern
fillRect
in interface IlPattern
fillRect
in class IltPattern
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
.public void fillPolygon(Graphics g, AffineTransform t, IlIntPolygon polygon, Color foreground, Color background)
IlPattern
fillPolygon
in interface IlPattern
fillPolygon
in class IltPattern
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
.public Paint getPaint(Color foreground, Color background)
IltPattern
Paint
interface that
should be used to fill a 2D area with the specified pattern.getPaint
in class IltPattern
foreground
- The foreground color to be used to draw the pattern.background
- The background color of the pattern to be used.Paint
interface to be used to fill
a 2D area.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.