Class ShadowFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class ShadowFilter extends AbstractBufferedImageOp
  • Constructor Details

    • ShadowFilter

      public ShadowFilter()
    • ShadowFilter

      public ShadowFilter(float radius, float xOffset, float yOffset, float opacity)
  • Method Details

    • setAngle

      public void setAngle(float angle)
    • getAngle

      public float getAngle()
    • setDistance

      public void setDistance(float distance)
    • getDistance

      public float getDistance()
    • setRadius

      public void setRadius(float radius)
      Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.
      Parameters:
      radius - the radius of the blur in pixels.
    • getRadius

      public float getRadius()
      Get the radius of the kernel.
      Returns:
      the radius
    • setOpacity

      public void setOpacity(float opacity)
    • getOpacity

      public float getOpacity()
    • setShadowColor

      public void setShadowColor(int shadowColor)
    • getShadowColor

      public int getShadowColor()
    • setAddMargins

      public void setAddMargins(boolean addMargins)
    • getAddMargins

      public boolean getAddMargins()
    • setShadowOnly

      public void setShadowOnly(boolean shadowOnly)
    • getShadowOnly

      public boolean getShadowOnly()
    • transformSpace

      protected void transformSpace(Rectangle r)
    • filter

      public BufferedImage filter(BufferedImage src, BufferedImage dst)
    • toString

      public String toString()
      Overrides:
      toString in class Object