|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.CardLayout
org.tbee.swing.cardlayout.CardLayout
org.tbee.swing.cardlayout.AnimatedCardLayout
public class AnimatedCardLayout
| Nested Class Summary | |
|---|---|
protected static class |
AnimatedCardLayout.Tuple
|
| Field Summary | |
|---|---|
static java.lang.String |
ANIMATION_COMPONENT_NAME
|
protected int |
animationDuration
|
protected java.util.List |
comps
The list of component & names. |
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
AnimatedCardLayout()
Simple constructor. |
|
AnimatedCardLayout(Animation anim)
Constructor that takes an animation. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the given component to this layout with the given name. |
void |
animationFinished()
Notification that animation has finished. |
protected void |
fireCardChangeListenerEvent(CardChangeEvent e)
Prevent multiple events |
void |
first(java.awt.Container parent)
Shows an animation while flipping to the first card. |
Animation |
getAnimation()
Gets the current Animation. |
boolean |
isAnimating()
|
void |
last(java.awt.Container parent)
Shows an animation while flipping to the last card. |
void |
next(java.awt.Container parent)
Shows an animation while flipping to the next card. |
void |
previous(java.awt.Container parent)
Shows an animation while flipping to the previous card. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the given component from this layout. |
void |
setAnimation(Animation animation)
Sets the current Animation. |
void |
setAnimationDuration(int animationDuration)
set duration of the animation. |
void |
show(java.awt.Container parent,
java.lang.String name)
Flips to the specified card, using an animation. |
| Methods inherited from class org.tbee.swing.cardlayout.CardLayout |
|---|
addCardChangedListener, addCardChangeListener, addLayoutComponent, fireCardChangedListenerEvent, getComponent, getContainer, getName, getVisibleComponent, getVisibleComponentName, layoutContainer, removeCardChangedListener, removeCardChangeListener |
| Methods inherited from class java.awt.CardLayout |
|---|
addLayoutComponent, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, setHgap, setVgap, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
protected int animationDuration
protected java.util.List comps
public static final java.lang.String ANIMATION_COMPONENT_NAME
| Constructor Detail |
|---|
public AnimatedCardLayout()
public AnimatedCardLayout(Animation anim)
| Method Detail |
|---|
public boolean isAnimating()
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManageraddLayoutComponent in class CardLayoutpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerremoveLayoutComponent in class CardLayoutpublic void first(java.awt.Container parent)
first in class java.awt.CardLayoutpublic void next(java.awt.Container parent)
next in class java.awt.CardLayoutpublic void previous(java.awt.Container parent)
previous in class java.awt.CardLayoutpublic void last(java.awt.Container parent)
last in class java.awt.CardLayout
public void show(java.awt.Container parent,
java.lang.String name)
show in class CardLayoutprotected void fireCardChangeListenerEvent(CardChangeEvent e)
fireCardChangeListenerEvent in class CardLayoute - public void animationFinished()
animationFinished in interface AnimationListenerpublic Animation getAnimation()
public void setAnimation(Animation animation)
public void setAnimationDuration(int animationDuration)
duration - duration of the animation in the ms
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||