Class CurlFilter

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

    public class CurlFilter
    extends TransformFilter
    A page curl effect.
    • Constructor Detail

      • CurlFilter

        public CurlFilter()
        Construct a CurlFilter with no distortion.
    • Method Detail

      • setTransition

        public void setTransition​(float transition)
      • getTransition

        public float getTransition()
      • setAngle

        public void setAngle​(float angle)
      • getAngle

        public float getAngle()
      • setRadius

        public void setRadius​(float radius)
      • getRadius

        public float getRadius()
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
        Specified by:
        filter in interface java.awt.image.BufferedImageOp
        Overrides:
        filter in class TransformFilter
      • transformInverse

        protected void transformInverse​(int x,
                                        int y,
                                        float[] out)
        Description copied from class: TransformFilter
        Inverse transform a point. This method needs to be overriden by all subclasses.
        Specified by:
        transformInverse in class TransformFilter
        Parameters:
        x - the X position of the pixel in the output image
        y - the Y position of the pixel in the output image
        out - the position of the pixel in the input image
      • toString

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