j2d.filters
Class KaleidoscopeProcessor

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.TransformFilter
          extended by j2d.filters.KaleidoscopeProcessor
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class KaleidoscopeProcessor
extends TransformFilter

A Filter which produces the effect of looking into a kaleidoscope.


Field Summary
 
Fields inherited from class com.jhlabs.image.TransformFilter
BILINEAR, CLAMP, NEAREST_NEIGHBOUR, WRAP, ZERO
 
Constructor Summary
KaleidoscopeProcessor()
          Construct a KaleidoscopeFilter with no distortion.
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 float getAngle()
           
 float getAngle2()
           
 float getCenterX()
           
 float getCenterY()
           
 java.awt.geom.Point2D getCentre()
           
 int getIcenterX()
           
 int getIcenterY()
           
 float getRadius()
           
 int getSides()
           
 void setAngle(float angle)
           
 void setAngle2(float angle2)
           
 void setCenterX(float centerX)
           
 void setCenterY(float centerY)
           
 void setCentre(java.awt.geom.Point2D centre)
           
 void setIcenterX(int icenterX)
           
 void setIcenterY(int icenterY)
           
 void setRadius(float radius)
           
 void setSides(int sides)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.TransformFilter
getBilinear, getEdgeAction, getInterpolation, getNearestNeighbour, getOriginalSpace, getTransformedSpace, setEdgeAction, setInterpolation, setOriginalSpace, setTransformedSpace
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KaleidoscopeProcessor

public KaleidoscopeProcessor()
Construct a KaleidoscopeFilter with no distortion.

Method Detail

setSides

public void setSides(int sides)

getSides

public int getSides()

setAngle

public void setAngle(float angle)

getAngle

public float getAngle()

setAngle2

public void setAngle2(float angle2)

getAngle2

public float getAngle2()

setCenterX

public void setCenterX(float centerX)

getCenterX

public float getCenterX()

setCenterY

public void setCenterY(float centerY)

getCenterY

public float getCenterY()

setCentre

public void setCentre(java.awt.geom.Point2D centre)

getCentre

public java.awt.geom.Point2D getCentre()

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

toString

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

getIcenterY

public int getIcenterY()

setIcenterY

public void setIcenterY(int icenterY)

getIcenterX

public int getIcenterX()

setIcenterX

public void setIcenterX(int icenterX)