com.alee.extended.transition.effects
Class DefaultTransitionEffect

java.lang.Object
  extended by com.alee.extended.transition.effects.DefaultTransitionEffect
All Implemented Interfaces:
TransitionEffect
Direct Known Subclasses:
BlocksTransitionEffect, CurtainTransitionEffect, FadeTransitionEffect, SlideTransitionEffect, ZoomTransitionEffect

public abstract class DefaultTransitionEffect
extends java.lang.Object
implements TransitionEffect

User: mgarin Date: 09.11.12 Time: 14:34


Field Summary
protected  boolean animating
           
protected static java.lang.String DIRECTION
           
protected  java.util.Map<java.lang.String,java.lang.Object> effectSettings
           
 
Constructor Summary
DefaultTransitionEffect()
           
 
Method Summary
protected  void clearSettings()
           
protected
<T> T
get(java.lang.String property, T defaultValue)
           
 long getAnimationDelay()
          Default methods
 Direction getDirection()
           
protected  java.util.Map<java.lang.String,java.lang.Object> getEffectSettings()
          Effect settings storage
 boolean isAnimating()
          Returns whether transition is performed or not.
abstract  boolean performAnimation(ImageTransition imageTransition)
          Single animation tick
 boolean performAnimationTick(ImageTransition transition)
          Default animation methods
abstract  void prepareAnimation(ImageTransition imageTransition)
          Initial animation tick used for preparations
protected  void put(java.lang.String property, java.lang.Object value)
           
protected  void remove(java.lang.String property)
           
 void setDirection(Direction direction)
           
protected  void setEffectSettings(java.util.Map<java.lang.String,java.lang.Object> effectSettings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alee.extended.transition.effects.TransitionEffect
paint
 

Field Detail

DIRECTION

protected static final java.lang.String DIRECTION
See Also:
Constant Field Values

effectSettings

protected java.util.Map<java.lang.String,java.lang.Object> effectSettings

animating

protected boolean animating
Constructor Detail

DefaultTransitionEffect

public DefaultTransitionEffect()
Method Detail

getAnimationDelay

public long getAnimationDelay()
Default methods

Specified by:
getAnimationDelay in interface TransitionEffect
Returns:
animation timer delay

isAnimating

public boolean isAnimating()
Description copied from interface: TransitionEffect
Returns whether transition is performed or not.

Specified by:
isAnimating in interface TransitionEffect
Returns:
true if transition is performed, false otherwise

getDirection

public Direction getDirection()

setDirection

public void setDirection(Direction direction)

getEffectSettings

protected java.util.Map<java.lang.String,java.lang.Object> getEffectSettings()
Effect settings storage


setEffectSettings

protected void setEffectSettings(java.util.Map<java.lang.String,java.lang.Object> effectSettings)

put

protected void put(java.lang.String property,
                   java.lang.Object value)

remove

protected void remove(java.lang.String property)

clearSettings

protected void clearSettings()

get

protected <T> T get(java.lang.String property,
                    T defaultValue)

performAnimationTick

public boolean performAnimationTick(ImageTransition transition)
Default animation methods

Specified by:
performAnimationTick in interface TransitionEffect
Parameters:
transition - image transition component
Returns:
true if this was the last transition tick, false otherwise

prepareAnimation

public abstract void prepareAnimation(ImageTransition imageTransition)
Initial animation tick used for preparations


performAnimation

public abstract boolean performAnimation(ImageTransition imageTransition)
Single animation tick