com.gif4j
Class TunnelFilter

java.lang.Object
  extended bycom.gif4j.MorphingFilter
      extended bycom.gif4j.TunnelFilter

public class TunnelFilter
extends MorphingFilter

An instance of TunnelFilter implements the gradual appearance animation in the form of tunnel.

Version:
1.0
Author:
Gif4J Software - Java GIF image processing solutions

Field Summary
 
Fields inherited from class com.gif4j.MorphingFilter
DEFAULT_DELAY_BETWEEN_FRAMES
 
Constructor Summary
TunnelFilter(boolean startFromCenter)
          Constructs TunnelFilter with the specified motion direction, default number of frames = 8 and delay between frames = 0.1 sec (10 1/100 sec)
TunnelFilter(boolean startFromCenter, int framesNumber)
          Constructs TunnelFilter with the specified motion direction, number of frames and default delay between frames = 0.1 sec (10 1/100 sec)
TunnelFilter(boolean startFromCenter, int framesNumber, int delayBetweenFrames)
          Constructs TunnelFilter with the specified motion direction, number of frames and delay between frames
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunnelFilter

public TunnelFilter(boolean startFromCenter)
Constructs TunnelFilter with the specified motion direction, default number of frames = 8 and delay between frames = 0.1 sec (10 1/100 sec)

Parameters:
startFromCenter - if true then start animation from center

TunnelFilter

public TunnelFilter(boolean startFromCenter,
                    int framesNumber)
Constructs TunnelFilter with the specified motion direction, number of frames and default delay between frames = 0.1 sec (10 1/100 sec)

Parameters:
startFromCenter - if true then start animation from center
framesNumber - how many frames the result animation should contain (should be greater than 1).
Throws:
java.lang.IllegalArgumentException - If frames number less than 2

TunnelFilter

public TunnelFilter(boolean startFromCenter,
                    int framesNumber,
                    int delayBetweenFrames)
Constructs TunnelFilter with the specified motion direction, number of frames and delay between frames

Parameters:
startFromCenter - if true then start animation from center
framesNumber - how many frames the result animation should contain (should be greater than 1).
delayBetweenFrames - delay time in 1/100 seconds (100 means 1 second delay) between generated frames.
Throws:
java.lang.IllegalArgumentException - If frames number less than 2
java.lang.IllegalArgumentException - If delay less than 1