org.tbee.swing.cardlayout
Class Transition2DAnimation

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

public class Transition2DAnimation
extends Object
implements Animation

This class animates using the transition classes in the Transition2D http://javagraphics.blogspot.com/2007/04/slideshows-transitions-swf.html replaces http://transitions.dev.java.net/

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

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
Transition2DAnimation(com.bric.image.transition.Transition transition)
           
 
Method Summary
 Component animate(Component first, Component last, AnimationListener listener)
          This method returns a component that is used to render the transition.
 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 String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

Transition2DAnimation

public Transition2DAnimation(com.bric.image.transition.Transition transition)
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 Component animate(Component first,
                         Component last,
                         AnimationListener listener)
This method returns a component that is used to render the transition. It is placed on top of the card layout stack. It is removed when listener.animationFinished(); is called.

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


Copyright © 2011 KnowledgePlaza. All Rights Reserved.