Class FlareFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class FlareFilter
    extends PointFilter
    An experimental filter for rendering lens flares.
    • Constructor Detail

      • FlareFilter

        public FlareFilter()
    • Method Detail

      • setColor

        public void setColor​(int color)
      • getColor

        public int getColor()
      • setRingWidth

        public void setRingWidth​(float ringWidth)
      • getRingWidth

        public float getRingWidth()
      • setBaseAmount

        public void setBaseAmount​(float baseAmount)
      • getBaseAmount

        public float getBaseAmount()
      • setRingAmount

        public void setRingAmount​(float ringAmount)
      • getRingAmount

        public float getRingAmount()
      • setRayAmount

        public void setRayAmount​(float rayAmount)
      • getRayAmount

        public float getRayAmount()
      • setCentre

        public void setCentre​(java.awt.geom.Point2D centre)
      • getCentre

        public java.awt.geom.Point2D getCentre()
      • setRadius

        public void setRadius​(float radius)
        Set the radius of the effect.
        Parameters:
        radius - the radius, min-value 0,
        See Also:
        getRadius()
      • getRadius

        public float getRadius()
        Get the radius of the effect.
        Returns:
        the radius
        See Also:
        setRadius(float)
      • filterRGB

        public int filterRGB​(int x,
                             int y,
                             int rgb)
        Specified by:
        filterRGB in class PointFilter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object