public final class HatchBrush extends Brush
Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.
Constructor and Description |
---|
HatchBrush() |
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor()
Gets the color of spaces between the hatch lines.
|
Color |
getForegroundColor()
Gets the color of hatch lines.
|
int |
getHatchStyle()
Gets the hatch style of this brush.
|
void |
setBackgroundColor(Color value)
Sets the color of spaces between the hatch lines.
|
void |
setForegroundColor(Color value)
Sets the color of hatch lines.
|
void |
setHatchStyle(int value)
Sets the hatch style of this brush.
|
deepClone, getOpacity, setOpacity
close, dispose, getDisposed
public Color getForegroundColor()
Gets the color of hatch lines.
public void setForegroundColor(Color value)
Sets the color of hatch lines.
value
- The color of hatch lines.public Color getBackgroundColor()
Gets the color of spaces between the hatch lines.
public void setBackgroundColor(Color value)
Sets the color of spaces between the hatch lines.
value
- The color of spaces between the hatch lines.public int getHatchStyle()
Gets the hatch style of this brush.
public void setHatchStyle(int value)
Sets the hatch style of this brush.