com.jhlabs.image

Class SparkleFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class SparkleFilter
extends PointFilter

Field Summary

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

SparkleFilter()

Method Summary

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)
String
toString()

Methods inherited from class com.jhlabs.image.PointFilter

filter, filterRGB, setDimensions

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

SparkleFilter

public SparkleFilter()

Method Details

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in interface PointFilter

getAmount

public int getAmount()
Get the amount of sparkle.
Returns:
the amount

getColor

public int getColor()

getRadius

public int getRadius()
Get the radius of the effect.
Returns:
the radius

getRandomness

public int getRandomness()

getRays

public int getRays()

getRelativeCentreX

public float getRelativeCentreX()

getRelativeCentreY

public float getRelativeCentreY()

isLightOnly

public boolean isLightOnly()

setAmount

public void setAmount(int amount)
Set the amount of sparkle.
Parameters:
amount - the amount

setColor

public void setColor(int color)

setDimensions

public void setDimensions(int width,
                          int height)
Overrides:
setDimensions in interface PointFilter

setLightOnly

public void setLightOnly(boolean lightOnly)

setRadius

public void setRadius(int radius)
Set the radius of the effect.
Parameters:
radius - the radius

setRandomness

public void setRandomness(int randomness)

setRays

public void setRays(int rays)

setRelativeCentreX

public void setRelativeCentreX(float relativeCentreX)

setRelativeCentreY

public void setRelativeCentreY(float relativeCentreY)

toString

public String toString()