public class SpenFillPatternEffect extends SpenFillEffectBase
TYPE_COLOR, TYPE_IMAGE, TYPE_PATTERN| Constructor and Description |
|---|
SpenFillPatternEffect()
Create new SpenFillPatternEffect instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBackgroundColor()
Get background color.
|
int |
getForegroundColor()
Get foreground color.
|
char[] |
getPattern()
Get the pattern to fill.
|
void |
setBackgroundColor(int color)
Set background color.
|
void |
setForegroundColor(int color)
Set foreground color.
|
void |
setPattern(char[] pattern)
Set the pattern to fill.
|
createFillEffect, getTypepublic SpenFillPatternEffect()
public void setPattern(char[] pattern)
pattern - The pattern to fill. The pattern should consist of 8 bits * 8 lines.
Each bit of this pattern represents a pixel.IllegalArgumentException - Thrown if pattern is not valid.NullPointerException - If the pattern is null.getPattern()public char[] getPattern()
setPattern(char[])public void setForegroundColor(int color)
color - Foreground color.getForegroundColor()public int getForegroundColor()
setForegroundColor(int)public void setBackgroundColor(int color)
color - Background color.getBackgroundColor()public int getBackgroundColor()
setBackgroundColor(int)