visual.dynamic.sampled
Class LineWipe
java.lang.Object
visual.dynamic.sampled.AbstractFrameOp
visual.dynamic.sampled.AbstractTransition
visual.dynamic.sampled.RectangleWipe
visual.dynamic.sampled.LineWipe
- All Implemented Interfaces:
- FrameOp, Transition
public class LineWipe
- extends RectangleWipe
A wipe that moves across the image right, left, up, or down
- See Also:
- "The Design and Implementation of Multimedia Software © 2011"
Field Summary |
static int |
DOWN
|
static int |
LEFT
|
static int |
RIGHT
|
static int |
UP
|
Constructor Summary |
LineWipe(int direction,
int first,
int duration)
Explicit Value Constructor |
Method Summary |
protected java.awt.geom.Rectangle2D |
calculateClip(float width,
float height,
int frame)
Calculate the size of the clip rectangle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOWN
public static final int DOWN
- See Also:
- Constant Field Values
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
UP
public static final int UP
- See Also:
- Constant Field Values
LineWipe
public LineWipe(int direction,
int first,
int duration)
- Explicit Value Constructor
- Parameters:
direction
- UP, DOWN, RIGHT, or LEFTfirst
- The first frameduration
- The duration (in frames)
calculateClip
protected java.awt.geom.Rectangle2D calculateClip(float width,
float height,
int frame)
- Calculate the size of the clip rectangle
- Overrides:
calculateClip
in class RectangleWipe
- Parameters:
width
- The width of the imageheight
- The height of the imageframe
- The frame of the wipe
Design and Implementation of Multimedia Software, Jones and Bartlett Publishers