de.enough.polish.ui.screenanimations
Class BottomShutterScreenChangeAnimation

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Canvas
          extended by de.enough.polish.ui.ScreenChangeAnimation
              extended by de.enough.polish.ui.screenanimations.BottomShutterScreenChangeAnimation
All Implemented Interfaces:
AccessibleCanvas, java.lang.Runnable

public class BottomShutterScreenChangeAnimation
extends ScreenChangeAnimation

Moves the new screen from the bottom to the front.

Copyright (c) Enough Software 2005 - 2008

 history
        31-May-2005 - mkoch creation
 

Author:
Michael Koch, michael@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.ui.ScreenChangeAnimation
display, fullScreenModeSet, isForwardAnimation, lastCanvasImage, lastCanvasRgb, nextCanvas, nextCanvasImage, nextCanvasRgb, nextDisplayable, screenHeight, screenWidth, useLastCanvasRgb, useNextCanvasRgb
 
Fields inherited from class javax.microedition.lcdui.Canvas
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
Constructor Summary
BottomShutterScreenChangeAnimation()
          Creates a new animation
 
Method Summary
protected  boolean animate()
          Animates this animation.
 void paintAnimation(javax.microedition.lcdui.Graphics g)
          Paints the animation.
protected  void setStyle(Style style)
          Sets the style for this animation.
 
Methods inherited from class de.enough.polish.ui.ScreenChangeAnimation
hideNotify, keyPressed, keyReleased, keyRepeated, paint, pointerDragged, pointerPressed, pointerReleased, run, show, showNotify, sizeChanged, updateNextScreen
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints, setFullScreenMode
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BottomShutterScreenChangeAnimation

public BottomShutterScreenChangeAnimation()
Creates a new animation

Method Detail

setStyle

protected void setStyle(Style style)
Description copied from class: ScreenChangeAnimation
Sets the style for this animation. Subclasses can override this for adapting to different design settings.

Overrides:
setStyle in class ScreenChangeAnimation
Parameters:
style - the style

animate

protected boolean animate()
Description copied from class: ScreenChangeAnimation
Animates this animation.

Specified by:
animate in class ScreenChangeAnimation
Returns:
true when the animation should continue, when false is returned the animation will be stopped and the next screen will be shown instead.

paintAnimation

public void paintAnimation(javax.microedition.lcdui.Graphics g)
Description copied from class: ScreenChangeAnimation
Paints the animation.

Specified by:
paintAnimation in class ScreenChangeAnimation
Parameters:
g - the graphics context