com.alee.extended.transition.effects
Interface TransitionEffect

All Known Implementing Classes:
BlocksTransitionEffect, CurtainTransitionEffect, DefaultTransitionEffect, FadeTransitionEffect, SlideTransitionEffect, ZoomTransitionEffect

public interface TransitionEffect

This interface provides basic methods for transition effect creation. TransitionEffect can be used to perform transitions between images and components using ImageTransiton, ComponentTransition and MultiComponentTransition components.

Author:
Mikle Garin

Method Summary
 long getAnimationDelay()
          Animation timer delay.
 boolean isAnimating()
          Returns whether transition is performed or not.
 void paint(java.awt.Graphics2D g2d, ImageTransition transition)
          Paints current transition state.
 boolean performAnimationTick(ImageTransition transition)
          Called for each animation tick performed.
 

Method Detail

getAnimationDelay

long getAnimationDelay()
Animation timer delay.

Returns:
animation timer delay

isAnimating

boolean isAnimating()
Returns whether transition is performed or not.

Returns:
true if transition is performed, false otherwise

performAnimationTick

boolean performAnimationTick(ImageTransition transition)
Called for each animation tick performed. Returns whether this was the last transition tick or not.

Parameters:
transition - image transition component
Returns:
true if this was the last transition tick, false otherwise

paint

void paint(java.awt.Graphics2D g2d,
           ImageTransition transition)
Paints current transition state.

Parameters:
g2d - graphics context
transition - image transition component