public class AbstractAreaEffect extends Object implements AreaEffect
Modifier and Type | Field and Description |
---|---|
(package private) BufferedImage |
_clipImage |
private Color |
brushColor
Holds value of property brushColor.
|
private int |
brushSteps
Holds value of property brushSteps.
|
private static boolean |
debug |
private int |
effectWidth
Holds value of property effectWidth.
|
private Point2D |
offset
Holds value of property offset.
|
private PropertyChangeSupport |
propertyChangeSupport
Utility field used by bound properties.
|
private boolean |
renderInsideShape
Holds value of property renderInsideShape.
|
private boolean |
shapeMasked
Holds value of property shapeMasked.
|
private boolean |
shouldFillShape
Holds value of property shouldFillShape.
|
Constructor and Description |
---|
AbstractAreaEffect()
Creates a new instance of AreaEffect
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list.
|
void |
apply(Graphics2D g,
Shape clipShape,
int width,
int height)
Draws an effect on the specified graphics and path using the specified width and height.
|
Color |
getBrushColor()
Getter for property brushColor.
|
int |
getBrushSteps()
Getter for property brushSteps.
|
private BufferedImage |
getClipImage(Rectangle effectBounds) |
int |
getEffectWidth()
Getter for property effectWidth.
|
Point2D |
getOffset()
Getter for property offset.
|
boolean |
isRenderInsideShape()
Getter for property renderInsideShape.
|
boolean |
isShapeMasked()
Getter for property shapeMasked.
|
boolean |
isShouldFillShape()
Getter for property shouldFillShape.
|
protected void |
paintBorderGlow(Graphics2D g2,
Shape clipShape,
int width,
int height)
Paints the border glow
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list.
|
void |
setBrushColor(Color brushColor)
Setter for property brushColor.
|
void |
setBrushSteps(int brushSteps)
Setter for property brushSteps.
|
void |
setEffectWidth(int effectWidth)
Setter for property effectWidth.
|
void |
setOffset(Point2D offset)
Setter for property offset.
|
void |
setRenderInsideShape(boolean renderInsideShape)
Setter for property renderInsideShape.
|
void |
setShapeMasked(boolean shapeMasked)
Setter for property shapeMasked.
|
void |
setShouldFillShape(boolean shouldFillShape)
Setter for property shouldFillShape.
|
private static final boolean debug
BufferedImage _clipImage
private Color brushColor
private PropertyChangeSupport propertyChangeSupport
private int brushSteps
private int effectWidth
private boolean renderInsideShape
private boolean shouldFillShape
private boolean shapeMasked
public AbstractAreaEffect()
public void apply(Graphics2D g, Shape clipShape, int width, int height)
AreaEffect
apply
in interface AreaEffect
private BufferedImage getClipImage(Rectangle effectBounds)
protected void paintBorderGlow(Graphics2D g2, Shape clipShape, int width, int height)
g2
- clipShape
- width
- height
- public void addPropertyChangeListener(PropertyChangeListener l)
l
- The listener to add.public void removePropertyChangeListener(PropertyChangeListener l)
l
- The listener to remove.public Color getBrushColor()
public void setBrushColor(Color brushColor)
brushColor
- New value of property brushColor.public int getBrushSteps()
public void setBrushSteps(int brushSteps)
brushSteps
- New value of property brushSteps.public int getEffectWidth()
public void setEffectWidth(int effectWidth)
effectWidth
- New value of property effectWidth.public boolean isRenderInsideShape()
public void setRenderInsideShape(boolean renderInsideShape)
renderInsideShape
- New value of property renderInsideShape.public void setOffset(Point2D offset)
offset
- New value of property offset.public boolean isShouldFillShape()
public void setShouldFillShape(boolean shouldFillShape)
shouldFillShape
- New value of property shouldFillShape.public boolean isShapeMasked()
public void setShapeMasked(boolean shapeMasked)
shapeMasked
- New value of property shapeMasked.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses