|
||||||||||
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
org.netbeans.microedition.svg.SVGPlayer
org.netbeans.microedition.svg.SVGAnimatorWrapper
org.netbeans.microedition.svg.SVGSplashScreen
public class SVGSplashScreen
This component represents a splash screen, which is usually being displayed when the application starts. It waits for a specified amount of time (by default 5000 milliseconds) and then calls specified command listener commandAction method with DISMISS_COMMAND as command parameter. It displays an animation of SVG image.
Field Summary | |
---|---|
static javax.microedition.lcdui.Command |
DISMISS_COMMAND
Command fired when the screen is about to be dismissed |
static int |
FOREVER
Timeout value which wait forever. |
Fields inherited from class org.netbeans.microedition.svg.SVGPlayer |
---|
BOTTOM, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER, LEFT, PAUSED, PLAYING, RIGHT, STOPPED, TOP, TOP_LEFT, TOP_RIGHT |
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, UP |
Constructor Summary | |
---|---|
SVGSplashScreen(javax.microedition.m2g.SVGImage svgImage,
javax.microedition.lcdui.Display display)
Creates a new instance of SVGSplashScreen Please note, supplied SVGImage shouldn't be reused in other SVGAnimator. |
Method Summary | |
---|---|
int |
getTimeout()
Gets current timeout of the splash screen |
boolean |
isAllowTimeoutInterrupt()
Can be the splashscreen interrupted (dismissed) by the user pressing a key? |
void |
setAllowTimeoutInterrupt(boolean allow)
Set to true, when the timeout with a specified timeout interval can be interrupted by pressing a key. |
void |
setTimeout(int timeout)
Sets the timeout of the splash screen - i.e. the time in milliseconds for how long the splash screen is going to be shown on the display. |
Methods inherited from class javax.microedition.lcdui.Canvas |
---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, showNotify, sizeChanged |
Methods inherited from class javax.microedition.lcdui.Displayable |
---|
getHeight, getWidth, isShown |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.microedition.lcdui.Command DISMISS_COMMAND
public static final int FOREVER
Constructor Detail |
---|
public SVGSplashScreen(javax.microedition.m2g.SVGImage svgImage, javax.microedition.lcdui.Display display) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Method Detail |
---|
public void setTimeout(int timeout)
timeout
- in millisecondspublic int getTimeout()
public void setAllowTimeoutInterrupt(boolean allow)
allow
- true if the user can interrupt the screen, false if the user need to wait
until timeout.public boolean isAllowTimeoutInterrupt()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |