org.tbee.swing.cardlayout
Interface Animation

All Known Implementing Classes:
CubeAnimation, FadeAnimation, Flip3DAnimation, FlipAnimation, SlideAnimation, Transition2DAnimation

public interface Animation

Version:
$Revision: 1.4 $

Method Summary
 java.awt.Component animate(java.awt.Component first, java.awt.Component last, AnimationListener listener)
          Draws an animation moving from 'first' to 'last'.
 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.
 

Method Detail

animate

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

Returns:
a Component which the animation is drawn on.

setDirection

void setDirection(boolean direction)
set direction of the animation. meaning of the param direction is the function of every particulatr animator

Parameters:
direction -

setAnimationDuration

void setAnimationDuration(int duration)
set duration of the animation.

Parameters:
duration - duration of the animation in the ms

handlesVisibility

boolean handlesVisibility()
Does the animation handle its own visibility

Returns:


Copyright © 2010 KnowledgePlaza. All Rights Reserved.