railo.runtime.img.filter
Class SwimFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.TransformFilter
          extended by railo.runtime.img.filter.SwimFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class SwimFilter
extends TransformFilter
implements DynFiltering

A filter which distorts an image as if it were underwater.


Field Summary
 
Fields inherited from class railo.runtime.img.filter.TransformFilter
BILINEAR, NEAREST_NEIGHBOUR
 
Constructor Summary
SwimFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 float getAmount()
          Get the amount of swim.
 float getAngle()
          Returns the angle of the effect.
 float getScale()
          Returns the scale of the distortion.
 float getStretch()
          Returns the stretch factor of the distortion.
 float getTime()
          Returns the time.
 float getTurbulence()
          Returns the turbulence of the effect.
 void setAmount(float amount)
          Set the amount of swim.
 void setAngle(float angle)
          Specifies the angle of the effect.
 void setScale(float scale)
          Specifies the scale of the distortion.
 void setStretch(float stretch)
          Specifies the stretch factor of the distortion.
 void setTime(float time)
          Specifies the time.
 void setTurbulence(float turbulence)
          Specifies the turbulence of the texture.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.TransformFilter
filter, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwimFilter

public SwimFilter()
Method Detail

setAmount

public void setAmount(float amount)
Set the amount of swim.

Parameters:
amount - the amount of swim
See Also:
getAmount()

getAmount

public float getAmount()
Get the amount of swim.

Returns:
the amount swim
See Also:
setAmount(float)

setScale

public void setScale(float scale)
Specifies the scale of the distortion.

Parameters:
scale - the scale of the distortion.
See Also:
getScale()

getScale

public float getScale()
Returns the scale of the distortion.

Returns:
the scale of the distortion.
See Also:
setScale(float)

setStretch

public void setStretch(float stretch)
Specifies the stretch factor of the distortion.

Parameters:
stretch - the stretch factor of the distortion.
See Also:
getStretch()

getStretch

public float getStretch()
Returns the stretch factor of the distortion.

Returns:
the stretch factor of the distortion.
See Also:
setStretch(float)

setAngle

public void setAngle(float angle)
Specifies the angle of the effect.

Parameters:
angle - the angle of the effect.
See Also:
getAngle()

getAngle

public float getAngle()
Returns the angle of the effect.

Returns:
the angle of the effect.
See Also:
setAngle(float)

setTurbulence

public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.

Parameters:
turbulence - the turbulence of the texture.
See Also:
getTurbulence()

getTurbulence

public float getTurbulence()
Returns the turbulence of the effect.

Returns:
the turbulence of the effect.
See Also:
setTurbulence(float)

setTime

public void setTime(float time)
Specifies the time. Use this to animate the effect.

Parameters:
time - the time.
See Also:
getTime()

getTime

public float getTime()
Returns the time.

Returns:
the time.
See Also:
setTime(float)

toString

public String toString()
Overrides:
toString in class Object

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Overrides:
filter in class TransformFilter
Throws:
PageException


Copyright © 2012 Railo