org.noos.xing.mydoggy.plaf.ui.animation
Class AbstractAnimation

java.lang.Object
  extended by org.noos.xing.mydoggy.plaf.ui.animation.AbstractAnimation
All Implemented Interfaces:
ActionListener, EventListener
Direct Known Subclasses:
ContentRepresentativeAnchorUI.GradientAnimation, FloatingContainer.FloatingAnimation, MoveComponentAnimation, MyDoggyToolWindowBar.VisibleDockedListener.SplitAnimation, SlidingContainer.SlidingAnimation, ToolWindowRepresentativeAnchorUI.GradientAnimation, ToolWindowTitleBarUI.GradientAnimation, TransparencyAnimation

public abstract class AbstractAnimation
extends Object
implements ActionListener

Author:
Angelo De Caro (angelo.decaro@gmail.com)

Nested Class Summary
static class AbstractAnimation.Direction
           
protected static class AbstractAnimation.Type
           
 
Field Summary
 Object SYNC
           
 
Constructor Summary
AbstractAnimation(float animationDuration)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addAnimationListener(AnimationListener animationListener)
           
protected  AbstractAnimation.Direction chooseFinishDirection(AbstractAnimation.Type type)
           
protected  void fireOnFinished()
           
 AbstractAnimation.Direction getAnimationDirection()
           
 void hide(Object... params)
           
 boolean isAnimating()
           
protected abstract  float onAnimating(float animationPercent)
           
protected abstract  void onFinishAnimation()
           
protected abstract  void onHide(Object... params)
           
protected abstract  void onShow(Object... params)
           
protected abstract  void onStartAnimation(AbstractAnimation.Direction direction)
           
 void removeAnimationListener(AnimationListener animationListener)
           
 void show(Object... params)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNC

public final Object SYNC
Constructor Detail

AbstractAnimation

public AbstractAnimation(float animationDuration)
Method Detail

actionPerformed

public final void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

show

public final void show(Object... params)

hide

public final void hide(Object... params)

stop

public final void stop()

isAnimating

public final boolean isAnimating()

getAnimationDirection

public final AbstractAnimation.Direction getAnimationDirection()

addAnimationListener

public void addAnimationListener(AnimationListener animationListener)

removeAnimationListener

public void removeAnimationListener(AnimationListener animationListener)

onShow

protected abstract void onShow(Object... params)

onHide

protected abstract void onHide(Object... params)

onStartAnimation

protected abstract void onStartAnimation(AbstractAnimation.Direction direction)

onFinishAnimation

protected abstract void onFinishAnimation()

onAnimating

protected abstract float onAnimating(float animationPercent)

chooseFinishDirection

protected AbstractAnimation.Direction chooseFinishDirection(AbstractAnimation.Type type)

fireOnFinished

protected void fireOnFinished()


Copyright © 2012. All Rights Reserved.