visual.dynamic.sampled
Class Dissolve

java.lang.Object
  extended by visual.dynamic.sampled.AbstractFrameOp
      extended by visual.dynamic.sampled.AbstractTransition
          extended by visual.dynamic.sampled.Fade
              extended by visual.dynamic.sampled.Dissolve
All Implemented Interfaces:
FrameOp, Transition

public class Dissolve
extends Fade

A transition that fades-out the previous frame and fades-in the new one

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Field Summary
 
Fields inherited from class visual.dynamic.sampled.Fade
FADE_IN, FADE_OUT
 
Fields inherited from class visual.dynamic.sampled.AbstractFrameOp
duration, first
 
Constructor Summary
Dissolve(int first, int duration)
          Explicit Value Constructor
 
Method Summary
protected  void setDestinationPixels(java.awt.Graphics g)
          Set the destination (in the Porter-Duff sense) pixels to be used in alpha blending
 
Methods inherited from class visual.dynamic.sampled.Fade
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
 

Constructor Detail

Dissolve

public Dissolve(int first,
                int duration)
Explicit Value Constructor

Parameters:
first - The first frame
duration - The duration (in frames)
Method Detail

setDestinationPixels

protected void setDestinationPixels(java.awt.Graphics g)
Set the destination (in the Porter-Duff sense) pixels to be used in alpha blending

Overrides:
setDestinationPixels in class Fade
Parameters:
g - The rendering engine


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers