com.alee.extended.transition.effects.blocks
Class BlocksTransitionEffect

java.lang.Object
  extended by com.alee.extended.transition.effects.DefaultTransitionEffect
      extended by com.alee.extended.transition.effects.blocks.BlocksTransitionEffect
All Implemented Interfaces:
TransitionEffect

public class BlocksTransitionEffect
extends DefaultTransitionEffect

User: mgarin Date: 09.11.12 Time: 15:15


Field Summary
 
Fields inherited from class com.alee.extended.transition.effects.DefaultTransitionEffect
animating, DIRECTION, effectSettings
 
Constructor Summary
BlocksTransitionEffect()
           
 
Method Summary
 int getBlocksAmount()
           
 int getSize()
           
 int getSpeed()
           
 BlockType getType()
           
 boolean isFade()
           
 void paint(java.awt.Graphics2D g2d, ImageTransition transition)
          Paints current transition state.
 boolean performAnimation(ImageTransition imageTransition)
          Single animation tick
 void prepareAnimation(ImageTransition imageTransition)
          Initial animation tick used for preparations
 void setBlocksAmount(int blocksAmount)
           
 void setFade(boolean transparent)
           
 void setSize(int size)
           
 void setSpeed(int speed)
           
 void setType(BlockType type)
           
 
Methods inherited from class com.alee.extended.transition.effects.DefaultTransitionEffect
clearSettings, get, getAnimationDelay, getDirection, getEffectSettings, isAnimating, performAnimationTick, put, remove, setDirection, setEffectSettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlocksTransitionEffect

public BlocksTransitionEffect()
Method Detail

getType

public BlockType getType()

setType

public void setType(BlockType type)

isFade

public boolean isFade()

setFade

public void setFade(boolean transparent)

getSize

public int getSize()

setSize

public void setSize(int size)

getSpeed

public int getSpeed()

setSpeed

public void setSpeed(int speed)

getBlocksAmount

public int getBlocksAmount()

setBlocksAmount

public void setBlocksAmount(int blocksAmount)

prepareAnimation

public void prepareAnimation(ImageTransition imageTransition)
Description copied from class: DefaultTransitionEffect
Initial animation tick used for preparations

Specified by:
prepareAnimation in class DefaultTransitionEffect

performAnimation

public boolean performAnimation(ImageTransition imageTransition)
Description copied from class: DefaultTransitionEffect
Single animation tick

Specified by:
performAnimation in class DefaultTransitionEffect

paint

public void paint(java.awt.Graphics2D g2d,
                  ImageTransition transition)
Description copied from interface: TransitionEffect
Paints current transition state.

Parameters:
g2d - graphics context
transition - image transition component