visual.dynamic.sampled
Class LineWipe

java.lang.Object
  extended by visual.dynamic.sampled.AbstractFrameOp
      extended by visual.dynamic.sampled.AbstractTransition
          extended by visual.dynamic.sampled.RectangleWipe
              extended by 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
           
 
Fields inherited from class visual.dynamic.sampled.RectangleWipe
scale
 
Fields inherited from class visual.dynamic.sampled.AbstractFrameOp
duration, first
 
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 visual.dynamic.sampled.RectangleWipe
postRendering, preRendering
 
Methods inherited from class visual.dynamic.sampled.AbstractFrameOp
getFirstFrame, getLastFrame, hasFinishedAt, shouldApplyAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface visual.dynamic.sampled.FrameOp
getFirstFrame, getLastFrame
 

Field Detail

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
Constructor Detail

LineWipe

public LineWipe(int direction,
                int first,
                int duration)
Explicit Value Constructor

Parameters:
direction - UP, DOWN, RIGHT, or LEFT
first - The first frame
duration - The duration (in frames)
Method Detail

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 image
height - The height of the image
frame - The frame of the wipe


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers