com.jhlabs.image

Class FlareFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class FlareFilter
extends PointFilter

An experimental filter for rendering lens flares.

Field Summary

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

FlareFilter()

Method Summary

int
filterRGB(int x, int y, int rgb)
float
getBaseAmount()
Point2D
getCentre()
int
getColor()
float
getRadius()
Get the radius of the effect.
float
getRayAmount()
float
getRingAmount()
float
getRingWidth()
void
setBaseAmount(float baseAmount)
void
setCentre(Point2D centre)
void
setColor(int color)
void
setDimensions(int width, int height)
void
setRadius(float radius)
Set the radius of the effect.
void
setRayAmount(float rayAmount)
void
setRingAmount(float ringAmount)
void
setRingWidth(float ringWidth)
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

FlareFilter

public FlareFilter()

Method Details

filterRGB

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

getBaseAmount

public float getBaseAmount()

getCentre

public Point2D getCentre()

getColor

public int getColor()

getRadius

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

getRayAmount

public float getRayAmount()

getRingAmount

public float getRingAmount()

getRingWidth

public float getRingWidth()

setBaseAmount

public void setBaseAmount(float baseAmount)

setCentre

public void setCentre(Point2D centre)

setColor

public void setColor(int color)

setDimensions

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

setRadius

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

setRayAmount

public void setRayAmount(float rayAmount)

setRingAmount

public void setRingAmount(float ringAmount)

setRingWidth

public void setRingWidth(float ringWidth)

toString

public String toString()