|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.swing.animation.FadeInStep
public class FadeInStep
A colour fade-in
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.8 $
| Constructor Summary | |
|---|---|
FadeInStep()
Creates a new instance of FadeInStep |
|
| Method Summary | |
|---|---|
void |
apply(Animator at,
java.awt.Graphics2D g2)
Advance to the next step in the animation |
void |
init()
Set the initial state |
boolean |
isAnimated(Animator at)
Is the animation loop still active/running |
boolean |
isFinished(Animator at)
Is the animation loop finished |
void |
reset()
Reset the animation to its initial state |
void |
setEndColor(java.awt.Color ec)
Set the color used once the fade in has completed |
void |
setStartColor(java.awt.Color sc)
Set the color used at the start of the fade-in, normally this is the background color |
void |
step(Animator at)
Move to the next step in the animation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FadeInStep()
| Method Detail |
|---|
public void init()
public boolean isFinished(Animator at)
isFinished in interface AnimationStepat - the animation thread on which this object is running
public boolean isAnimated(Animator at)
isAnimated in interface AnimationStepat - the animation thread on which this object is running
public void setStartColor(java.awt.Color sc)
sc - the start/initial colorpublic void setEndColor(java.awt.Color ec)
ec - the end color
public void apply(Animator at,
java.awt.Graphics2D g2)
apply in interface AnimationStepg2 - the graphics contextat - the animation thread on which this object is runningpublic void reset()
reset in interface AnimationSteppublic void step(Animator at)
step in interface AnimationStepat - the animation thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||