org.tbee.swing.cardlayout
Class Flip3DAnimation

java.lang.Object
  extended by org.tbee.swing.cardlayout.Flip3DAnimation
All Implemented Interfaces:
Animation

public class Flip3DAnimation
extends java.lang.Object
implements Animation

The Flip3DAnimation is a class to animate the transition between one component and the other for AnimatingCardLayout using JOGL.

Version:
$Revision: 1.10 $, $Date: 2008/01/08 15:30:17 $
Author:
Tom Eugelink

Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
Flip3DAnimation()
           
 
Method Summary
 java.awt.Component animate(java.awt.Component first, java.awt.Component last, AnimationListener listener)
          Draws an animation moving from 'first' to 'last'.
static Animation createFlip3dOrFlip()
          Try to create Flip3D, but if JOGL is not present, return the regular Flip
 boolean handlesVisibility()
          Does the animation handle its own visibility
 void setAnimationDuration(int duration)
          set duration of the animation.
 void setDirection(boolean direction)
          set direction of the animation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

Flip3DAnimation

public Flip3DAnimation()
Method Detail

handlesVisibility

public boolean handlesVisibility()
Description copied from interface: Animation
Does the animation handle its own visibility

Specified by:
handlesVisibility in interface Animation
Returns:

setAnimationDuration

public void setAnimationDuration(int duration)
Description copied from interface: Animation
set duration of the animation.

Specified by:
setAnimationDuration in interface Animation
Parameters:
duration - duration of the animation in the ms

setDirection

public void setDirection(boolean direction)
Description copied from interface: Animation
set direction of the animation. meaning of the param direction is the function of every particulatr animator

Specified by:
setDirection in interface Animation

animate

public java.awt.Component animate(java.awt.Component first,
                                  java.awt.Component last,
                                  AnimationListener listener)
Description copied from interface: Animation
Draws an animation moving from 'first' to 'last'. AnimationListener listens to the animation and is notified when the animation is finished.

Specified by:
animate in interface Animation
Returns:
a Component which the animation is drawn on.

createFlip3dOrFlip

public static Animation createFlip3dOrFlip()
Try to create Flip3D, but if JOGL is not present, return the regular Flip



Copyright © 2010. All Rights Reserved.