de.enough.polish.ui.transitions
Class HorizontalTransition

java.lang.Object
  extended by de.enough.polish.ui.Transition
      extended by de.enough.polish.ui.transitions.HorizontalTransition
All Implemented Interfaces:
Animatable, UiElement

public class HorizontalTransition
extends Transition

Moves old and new states horizontally.

Copyright Enough Software 2008

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.ui.Transition
isFinished, newState, newStateRgbImage, newX, newY, oldState, oldStateRgbImage, oldX, oldY, parent, style, useNewStateRgb, useOldStateRgb
 
Constructor Summary
HorizontalTransition()
          Creates a new transition.
 
Method Summary
 boolean animate()
          Animates this transition
 void paint(int x, int y, Graphics g)
          Paints the transition
 void start(boolean isForward)
           
 void stop()
           
 
Methods inherited from class de.enough.polish.ui.Transition
addRelativeToContentRegion, addRepaintArea, animate, getStyle, initTransition, isFinished, setStyle, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HorizontalTransition

public HorizontalTransition()
Creates a new transition.

Method Detail

animate

public boolean animate()
Description copied from class: Transition
Animates this transition

Specified by:
animate in class Transition
Returns:
true when the animation continues, false otherwise

start

public void start(boolean isForward)
Specified by:
start in class Transition

stop

public void stop()
Specified by:
stop in class Transition

paint

public void paint(int x,
                  int y,
                  Graphics g)
Description copied from class: Transition
Paints the transition

Specified by:
paint in class Transition
Parameters:
x - horizontal start position
y - vertical start position
g - Graphics context