|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gif4j.MorphingFilter
com.gif4j.CurtainFilter
An instance of CurtainFilter
implements the gradual appearance animation
in the form of tableau curtains consist of one or two segments.
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 |
public static final int MOVE_FROM_LEFT_RIGHT_TO_CENTER
public static final int MOVE_FROM_CENTER_TO_LEFT_RIGHT
public static final int MOVE_FROM_LEFT_TO_RIGHT
public static final int MOVE_FROM_RIGHT_TO_LEFT
public static final int MOVE_FROM_TOP_BOTTOM_TO_MIDDLE
public static final int MOVE_FROM_MIDDLE_TO_TOP_BOTTOM
public static final int MOVE_FROM_TOP_TO_BOTTOM
public static final int MOVE_FROM_BOTTOM_TO_TOP
Constructor Detail |
public CurtainFilter(int moveFromTo)
CellFilter
of one of the predefined move
types,
default frames number = 8 and delay between frames = 0.1 sec (10 1/100 sec)
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
java.lang.IllegalArgumentException
- If unknown moveFromTo
typepublic CurtainFilter(int moveFromTo, int framesNumber)
CellFilter
of one of the predefined move
types,
the specified frames number and default delay between frames = 0.1 sec (10 1/100 sec)
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).
java.lang.IllegalArgumentException
- If unknown move
type
java.lang.IllegalArgumentException
- If frames number less than 2public CurtainFilter(int moveFromTo, int framesNumber, int delayBetweenFrames)
CellFilter
of one of the predefined move
types,
the specified frames number and delay between frames
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.
java.lang.IllegalArgumentException
- If unknown moveFromTo
type
java.lang.IllegalArgumentException
- If frames number less than 2
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |