public class ShadowFilter extends WholeImageFilter
canFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace| Constructor and Description |
|---|
ShadowFilter() |
ShadowFilter(int radius,
int xOffset,
int yOffset,
int opacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBackgroundColor() |
int |
getOpacity() |
int |
getRadius()
Get the radius of the kernel.
|
int |
getShadowColor() |
int |
getXOffset() |
int |
getYOffset() |
void |
imageComplete(int status) |
void |
setBackgroundColor(int backgroundColor) |
void |
setOpacity(int opacity) |
void |
setRadius(int radius)
Set the radius of the kernel, and hence the amount of blur.
|
void |
setShadowColor(int shadowColor) |
void |
setXOffset(int xOffset) |
void |
setYOffset(int yOffset) |
java.lang.String |
toString() |
protected void |
transformSpace(java.awt.Rectangle r) |
getTransformedSpace, setColorModel, setDimensions, setPixels, setPixelspublic ShadowFilter()
public ShadowFilter(int radius,
int xOffset,
int yOffset,
int opacity)
public void setXOffset(int xOffset)
public int getXOffset()
public void setYOffset(int yOffset)
public int getYOffset()
public void setRadius(int radius)
radius - the radius of the blur in pixels.public int getRadius()
public void setOpacity(int opacity)
public int getOpacity()
public void setShadowColor(int shadowColor)
public int getShadowColor()
public void setBackgroundColor(int backgroundColor)
public int getBackgroundColor()
protected void transformSpace(java.awt.Rectangle r)
transformSpace in class WholeImageFilterpublic void imageComplete(int status)
imageComplete in interface java.awt.image.ImageConsumerimageComplete in class java.awt.image.ImageFilterpublic java.lang.String toString()
toString in class java.lang.Object