|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.cardlayout.FadeAnimation
public class FadeAnimation
The FadeAnimation is a class to animate the transition between one component and the other for AnimatingCardLayout. Based on the Dashboard code of Dmitry Markman.
Description
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
FadeAnimation()
|
|
FadeAnimation(int duration)
|
|
| Method Summary | |
|---|---|
java.awt.Component |
animate(java.awt.Component toHide,
java.awt.Component toShow,
AnimationListener listener)
Draws an animation moving from 'first' to 'last'. |
java.awt.Component |
getAnimationPanel()
|
boolean |
handlesVisibility()
Does the animation handle its own visibility |
void |
setAnimationDuration(int animationDuration)
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 |
|---|
public static final java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public FadeAnimation()
public FadeAnimation(int duration)
| Method Detail |
|---|
public void setDirection(boolean direction)
Animation
setDirection in interface Animationpublic void setAnimationDuration(int animationDuration)
Animation
setAnimationDuration in interface AnimationanimationDuration - duration of the animation in the mspublic boolean handlesVisibility()
Animation
handlesVisibility in interface Animation
public java.awt.Component animate(java.awt.Component toHide,
java.awt.Component toShow,
AnimationListener listener)
Animation
animate in interface Animationpublic java.awt.Component getAnimationPanel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||