|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
de.enough.polish.ui.splash.InitializerMovieScreen
public class InitializerMovieScreen
Provides a SplashScreen that initializes the real application in a background thread while playing back a movie.
When the movie playback has finished and the application is initialized, the next screen provided by ApplicationInitializer.initApp() will be shown automatically.
Note that this screen is only available when the target device supports the MMAPI (//#if polish.api.mmapi).
Copyright (c) Enough Software 2008
ApplicationInitializer.initApp()| Field Summary |
|---|
| 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 |
| Fields inherited from interface javax.microedition.media.PlayerListener |
|---|
CLOSED, DEVICE_AVAILABLE, DEVICE_UNAVAILABLE, DURATION_UPDATED, END_OF_MEDIA, ERROR, STARTED, STOPPED, VOLUME_CHANGED |
| Constructor Summary | |
|---|---|
InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
ApplicationInitializer initializer)
Creates a new InitializerMovieScreen using the provided movie URL and a white background. |
|
InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
ApplicationInitializer initializer,
Style style)
Creates a new InitializerMovieScreen using the provided movie URL and the background specified by the style. |
|
InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
int backgroundColor,
ApplicationInitializer initializer)
Creates a new InitializerMovieScreen using the internal default view. |
|
InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
int backgroundColor,
ApplicationInitializer initializer,
Style style)
Creates a new InitializerMovieScreen using the internal default view. |
|
| Method Summary | |
|---|---|
Background |
getBackground()
Retrieves the background. |
void |
hideNotify()
|
void |
keyPressed(int keyCode)
|
void |
paint(Graphics g)
|
void |
playerUpdate(Player p,
String event,
Object data)
|
void |
pointerPressed(int x,
int y)
|
void |
pointerReleased(int x,
int y)
|
void |
run()
|
void |
setBackground(Background background)
Sets the background of this splash screen. |
void |
showNotify()
|
void |
sizeChanged(int width,
int height)
|
| Methods inherited from class javax.microedition.lcdui.Canvas |
|---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, keyReleased, keyRepeated, pointerDragged, 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 |
|---|
public InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
ApplicationInitializer initializer)
display - the display responsible for switching screensmovieUrl - the URL to the movie that should be playedmimeType - the mime type of the movie, e.g. image/gifinitializer - the application initializer that will be called in a background thread
public InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
ApplicationInitializer initializer,
Style style)
display - the display responsible for switching screensmovieUrl - the URL to the movie that should be playedmimeType - the mime type of the movie, e.g. image/gifinitializer - the application initializer that will be called in a background threadstyle - the style for this screen - only the background is currently applied
public InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
int backgroundColor,
ApplicationInitializer initializer)
display - the display responsible for switching screensmovieUrl - the URL to the movie that should be playedmimeType - the mime type of the movie, e.g. image/gifbackgroundColor - the background color, e.g. white: 0xFFFFFFinitializer - the application initializer that will be called in a background thread
public InitializerMovieScreen(Display display,
String movieUrl,
String mimeType,
int backgroundColor,
ApplicationInitializer initializer,
Style style)
display - the display responsible for switching screensmovieUrl - the URL to the movie that should be playedmimeType - the mime type of the movie, e.g. image/gifbackgroundColor - the background color, e.g. white: 0xFFFFFFinitializer - the application initializer that will be called in a background threadstyle - the style for this screen - only the background is currently applied| Method Detail |
|---|
public void paint(Graphics g)
paint in class Canvaspublic void run()
run in interface Runnablepublic void keyPressed(int keyCode)
keyPressed in class Canvas
public void pointerPressed(int x,
int y)
pointerPressed in class Canvas
public void pointerReleased(int x,
int y)
pointerReleased in class Canvas
public void sizeChanged(int width,
int height)
sizeChanged in class Canvaspublic void showNotify()
showNotify in class Canvaspublic void hideNotify()
hideNotify in class Canvaspublic Background getBackground()
public void setBackground(Background background)
background - the background to set
public void playerUpdate(Player p,
String event,
Object data)
playerUpdate in interface PlayerListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||