public class SparkleFilter extends PointFilter
canFilterIndexColorModel| Constructor and Description |
|---|
SparkleFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
filterRGB(int x,
int y,
int rgb) |
int |
getAmount()
Get the amount of sparkle.
|
int |
getColor() |
int |
getRadius()
Get the radius of the effect.
|
int |
getRandomness() |
int |
getRays() |
float |
getRelativeCentreX() |
float |
getRelativeCentreY() |
boolean |
isLightOnly() |
void |
setAmount(int amount)
Set the amount of sparkle.
|
void |
setColor(int color) |
void |
setDimensions(int width,
int height) |
void |
setLightOnly(boolean lightOnly) |
void |
setRadius(int radius)
Set the radius of the effect.
|
void |
setRandomness(int randomness) |
void |
setRays(int rays) |
void |
setRelativeCentreX(float relativeCentreX) |
void |
setRelativeCentreY(float relativeCentreY) |
java.lang.String |
toString() |
filterclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBpublic void setColor(int color)
public int getColor()
public void setRandomness(int randomness)
public int getRandomness()
public void setAmount(int amount)
amount - the amountgetAmount()public int getAmount()
setAmount(int)public void setRays(int rays)
public int getRays()
public void setRadius(int radius)
radius - the radiusgetRadius()public int getRadius()
setRadius(int)public void setDimensions(int width,
int height)
setDimensions in class PointFilterpublic int filterRGB(int x,
int y,
int rgb)
filterRGB in class PointFilterpublic void setRelativeCentreX(float relativeCentreX)
public void setRelativeCentreY(float relativeCentreY)
public float getRelativeCentreX()
public float getRelativeCentreY()
public boolean isLightOnly()
public void setLightOnly(boolean lightOnly)
public java.lang.String toString()
toString in class java.lang.Object