org.formaria.swing.animation
Interface AnimationStep

All Known Subinterfaces:
AnimationObject
All Known Implementing Classes:
FadeInStep

public interface AnimationStep

A step in the animation such as a variation of colour or position.

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.5 $


Method Summary
 void apply(Animator at, java.awt.Graphics2D g2)
          Advance to the next step in the animation
 boolean isAnimated(Animator at)
          Is the animation loop still active/running
 boolean isFinished(Animator at)
          Is the animation loop finished
 void reset()
          Adjust the settings for the next step.
 void step(Animator at)
          Adjust the settings for the next step.
 

Method Detail

reset

void reset()
Adjust the settings for the next step.


apply

void apply(Animator at,
           java.awt.Graphics2D g2)
Advance to the next step in the animation

Parameters:
g2 - the graphics context
at - the animation thread on which this object is running

step

void step(Animator at)
Adjust the settings for the next step.

Parameters:
at - the animation thread on which this object is running

isFinished

boolean isFinished(Animator at)
Is the animation loop finished

Parameters:
at - the animation thread on which this object is running
Returns:
true if the animation has completed

isAnimated

boolean isAnimated(Animator at)
Is the animation loop still active/running

Parameters:
at - the animation thread on which this object is running
Returns:
true if the animation has started and is still in progress