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

java.lang.Object
  extended by org.noos.xing.mydoggy.plaf.ui.animation.AbstractAnimation
      extended by org.noos.xing.mydoggy.plaf.ui.animation.MoveComponentAnimation
All Implemented Interfaces:
ActionListener, EventListener

public class MoveComponentAnimation
extends AbstractAnimation

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.noos.xing.mydoggy.plaf.ui.animation.AbstractAnimation
AbstractAnimation.Direction, AbstractAnimation.Type
 
Field Summary
protected  Component component
           
protected  int deltaHeight
           
protected  int deltaWidth
           
protected  int deltaX
           
protected  int deltaY
           
protected  Rectangle endBounds
           
protected  Rectangle startBounds
           
 
Fields inherited from class org.noos.xing.mydoggy.plaf.ui.animation.AbstractAnimation
SYNC
 
Constructor Summary
MoveComponentAnimation(float animationDuration, Component component)
           
 
Method Summary
protected  float onAnimating(float animationPercent)
           
protected  void onFinishAnimation()
           
protected  void onHide(Object... params)
           
protected  void onShow(Object... params)
           
protected  void onStartAnimation(AbstractAnimation.Direction direction)
           
 
Methods inherited from class org.noos.xing.mydoggy.plaf.ui.animation.AbstractAnimation
actionPerformed, addAnimationListener, chooseFinishDirection, fireOnFinished, getAnimationDirection, hide, isAnimating, removeAnimationListener, show, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startBounds

protected Rectangle startBounds

endBounds

protected Rectangle endBounds

component

protected Component component

deltaX

protected int deltaX

deltaY

protected int deltaY

deltaWidth

protected int deltaWidth

deltaHeight

protected int deltaHeight
Constructor Detail

MoveComponentAnimation

public MoveComponentAnimation(float animationDuration,
                              Component component)
Method Detail

onShow

protected void onShow(Object... params)
Specified by:
onShow in class AbstractAnimation

onHide

protected void onHide(Object... params)
Specified by:
onHide in class AbstractAnimation

onStartAnimation

protected void onStartAnimation(AbstractAnimation.Direction direction)
Specified by:
onStartAnimation in class AbstractAnimation

onFinishAnimation

protected void onFinishAnimation()
Specified by:
onFinishAnimation in class AbstractAnimation

onAnimating

protected float onAnimating(float animationPercent)
Specified by:
onAnimating in class AbstractAnimation


Copyright © 2012. All Rights Reserved.