de.enough.polish.ui.transitions
Class HorizontalTransition
java.lang.Object
de.enough.polish.ui.Transition
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
| Fields inherited from class de.enough.polish.ui.Transition |
isFinished, newState, newStateRgbImage, newX, newY, oldState, oldStateRgbImage, oldX, oldY, parent, style, useNewStateRgb, useOldStateRgb |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HorizontalTransition
public HorizontalTransition()
- Creates a new transition.
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 positiony - vertical start positiong - Graphics context