com.gif4j
Class CurtainFilter

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

public class CurtainFilter
extends MorphingFilter

An instance of CurtainFilter implements the gradual appearance animation in the form of tableau curtains consist of one or two segments.

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

Field Summary
static int MOVE_FROM_BOTTOM_TO_TOP
          Move 1 segment curtain from the bottom to the top
static int MOVE_FROM_CENTER_TO_LEFT_RIGHT
          Move 2 segments curtain from the center to left/right sides
static int MOVE_FROM_LEFT_RIGHT_TO_CENTER
          Move 2 segments curtain from left/right sides to the center
static int MOVE_FROM_LEFT_TO_RIGHT
          Move 1 segment curtain from the left side to the right side
static int MOVE_FROM_MIDDLE_TO_TOP_BOTTOM
          Move 2 segments curtain from the center to top/bottom
static int MOVE_FROM_RIGHT_TO_LEFT
          Move 1 segment curtain from the right side to the left side
static int MOVE_FROM_TOP_BOTTOM_TO_MIDDLE
          Move 2 segments curtain from top/bottom to the center
static int MOVE_FROM_TOP_TO_BOTTOM
          Move 1 segment curtain from the top to the bottom
 
Fields inherited from class com.gif4j.MorphingFilter
DEFAULT_DELAY_BETWEEN_FRAMES
 
Constructor Summary
CurtainFilter(int moveFromTo)
          Constructs CellFilter of one of the predefined move types, default frames number = 8 and delay between frames = 0.1 sec (10 1/100 sec)
CurtainFilter(int moveFromTo, int framesNumber)
          Constructs CellFilter of one of the predefined move types, the specified frames number and default delay between frames = 0.1 sec (10 1/100 sec)
CurtainFilter(int moveFromTo, int framesNumber, int delayBetweenFrames)
          Constructs CellFilter of one of the predefined move types, the specified frames number and delay between frames
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOVE_FROM_BOTTOM_TO_TOP

public static final int MOVE_FROM_BOTTOM_TO_TOP
Move 1 segment curtain from the bottom to the top

See Also:
Constant Field Values

MOVE_FROM_CENTER_TO_LEFT_RIGHT

public static final int MOVE_FROM_CENTER_TO_LEFT_RIGHT
Move 2 segments curtain from the center to left/right sides

See Also:
Constant Field Values

MOVE_FROM_LEFT_RIGHT_TO_CENTER

public static final int MOVE_FROM_LEFT_RIGHT_TO_CENTER
Move 2 segments curtain from left/right sides to the center

See Also:
Constant Field Values

MOVE_FROM_LEFT_TO_RIGHT

public static final int MOVE_FROM_LEFT_TO_RIGHT
Move 1 segment curtain from the left side to the right side

See Also:
Constant Field Values

MOVE_FROM_MIDDLE_TO_TOP_BOTTOM

public static final int MOVE_FROM_MIDDLE_TO_TOP_BOTTOM
Move 2 segments curtain from the center to top/bottom

See Also:
Constant Field Values

MOVE_FROM_RIGHT_TO_LEFT

public static final int MOVE_FROM_RIGHT_TO_LEFT
Move 1 segment curtain from the right side to the left side

See Also:
Constant Field Values

MOVE_FROM_TOP_BOTTOM_TO_MIDDLE

public static final int MOVE_FROM_TOP_BOTTOM_TO_MIDDLE
Move 2 segments curtain from top/bottom to the center

See Also:
Constant Field Values

MOVE_FROM_TOP_TO_BOTTOM

public static final int MOVE_FROM_TOP_TO_BOTTOM
Move 1 segment curtain from the top to the bottom

See Also:
Constant Field Values
Constructor Detail

CurtainFilter

public CurtainFilter(int moveFromTo)
Constructs CellFilter of one of the predefined move types, default frames number = 8 and delay between frames = 0.1 sec (10 1/100 sec)

Parameters:
moveFromTo - one of the predefined move types: MOVE_FROM_LEFT_RIGHT_TO_CENTER, MOVE_FROM_CENTER_TO_LEFT_RIGHT, MOVE_FROM_LEFT_TO_RIGHT, MOVE_FROM_RIGHT_TO_LEFT, MOVE_FROM_TOP_BOTTOM_TO_MIDDLE, MOVE_FROM_MIDDLE_TO_TOP_BOTTOM, MOVE_FROM_TOP_TO_BOTTOM, MOVE_FROM_BOTTOM_TO_TOP
Throws:
java.lang.IllegalArgumentException - If unknown moveFromTo type

CurtainFilter

public CurtainFilter(int moveFromTo,
                     int framesNumber)
Constructs CellFilter of one of the predefined move types, the specified frames number and default delay between frames = 0.1 sec (10 1/100 sec)

Parameters:
moveFromTo - one of the predefined move types: MOVE_FROM_LEFT_RIGHT_TO_CENTER, MOVE_FROM_CENTER_TO_LEFT_RIGHT, MOVE_FROM_LEFT_TO_RIGHT, MOVE_FROM_RIGHT_TO_LEFT, MOVE_FROM_TOP_BOTTOM_TO_MIDDLE, MOVE_FROM_MIDDLE_TO_TOP_BOTTOM, MOVE_FROM_TOP_TO_BOTTOM, MOVE_FROM_BOTTOM_TO_TOP
framesNumber - how many frames the result animation should contain (must be greater than 1).
Throws:
java.lang.IllegalArgumentException - If unknown move type
java.lang.IllegalArgumentException - If frames number less than 2

CurtainFilter

public CurtainFilter(int moveFromTo,
                     int framesNumber,
                     int delayBetweenFrames)
Constructs CellFilter of one of the predefined move types, the specified frames number and delay between frames

Parameters:
moveFromTo - one of the predefined move types: MOVE_FROM_LEFT_RIGHT_TO_CENTER, MOVE_FROM_CENTER_TO_LEFT_RIGHT, MOVE_FROM_LEFT_TO_RIGHT, MOVE_FROM_RIGHT_TO_LEFT, MOVE_FROM_TOP_BOTTOM_TO_MIDDLE, MOVE_FROM_MIDDLE_TO_TOP_BOTTOM, MOVE_FROM_TOP_TO_BOTTOM, MOVE_FROM_BOTTOM_TO_TOP
framesNumber - how many frames the result animation should contain (must be greater than 1).
delayBetweenFrames - delay time in 1/100 seconds (100 means 1 second delay) between generated frames.
Throws:
java.lang.IllegalArgumentException - If unknown moveFromTo type
java.lang.IllegalArgumentException - If frames number less than 2