public class Fade extends AbstractTransition
Constructor and Description |
---|
Fade(int direction,
int first,
int duration)
Explicit Value Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
postRendering(java.awt.Graphics g,
int frame)
Apply the post-rendering portion of
this Transition.
|
void |
preRendering(java.awt.Graphics g,
int frame)
Apply the pre-rendering portion of
this Transition.
|
getFirstFrame, getLastFrame
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFirstFrame, getLastFrame
public static final int FADE_IN
public static final int FADE_OUT
public Fade(int direction, int first, int duration)
direction
- FADE_IN or FADE_OUTfirst
- The first frameduration
- The duration (in frames)public void postRendering(java.awt.Graphics g, int frame)
postRendering
in interface FrameOp
postRendering
in class AbstractTransition
g
- The rendering engineframe
- The current frame numberpublic void preRendering(java.awt.Graphics g, int frame)
preRendering
in interface FrameOp
preRendering
in class AbstractTransition
g
- The rendering engineframe
- The current frame number