Package com.jhlabs.image
Class MirrorFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.MirrorFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class MirrorFilter extends AbstractBufferedImageOp
-
-
Constructor Summary
Constructors Constructor Description MirrorFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetAngle()Returns the angle of the mirror.floatgetCentreY()floatgetDistance()floatgetGap()floatgetOpacity()Get the opacity of the reflection.floatgetRotation()voidsetAngle(float angle)Specifies the angle of the mirror.voidsetCentreY(float centreY)voidsetDistance(float distance)voidsetGap(float gap)voidsetOpacity(float opacity)Set the opacity of the reflection.voidsetRotation(float rotation)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setAngle
public void setAngle(float angle)
Specifies the angle of the mirror.- Parameters:
angle- the angle of the mirror.- See Also:
getAngle()
-
getAngle
public float getAngle()
Returns the angle of the mirror.- Returns:
- the angle of the mirror.
- See Also:
setAngle(float)
-
setDistance
public void setDistance(float distance)
-
getDistance
public float getDistance()
-
setRotation
public void setRotation(float rotation)
-
getRotation
public float getRotation()
-
setGap
public void setGap(float gap)
-
getGap
public float getGap()
-
setOpacity
public void setOpacity(float opacity)
Set the opacity of the reflection.- Parameters:
opacity- the opacity.- See Also:
getOpacity()
-
getOpacity
public float getOpacity()
Get the opacity of the reflection.- Returns:
- the opacity.
- See Also:
setOpacity(float)
-
setCentreY
public void setCentreY(float centreY)
-
getCentreY
public float getCentreY()
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-