@Deprecated public static class IltPattern.Solid extends IltPattern
Internal use only !
IltPattern.PatternWrapper, IltPattern.Solid
Solid
Constructor and Description |
---|
Solid()
Deprecated.
|
Solid(String contents)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
Compares two objects.
|
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).
|
Paint |
getPaint(Color foreground,
Color background)
Deprecated.
This method returns an instance of
Paint interface that
should be used to fill a 2D area with the specified pattern. |
int |
hashCode()
Deprecated.
Returns a hash code value for the object.
|
String |
toString()
Deprecated.
Converts the object into a human-readable format.
|
NewGridPattern, NewSkewGridPattern, NewViewsPattern
public Solid()
public Solid(String contents)
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.public boolean equals(Object o)
IltPattern
equals
in class IltPattern
o
- The object to compare totrue
if the object is the same as this object
false
otherwisepublic int hashCode()
IltPattern
hashCode
in class IltPattern
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.