| com.sun.perseus.demo.SplashCanvas
SplashCanvas | public class SplashCanvas extends Canvas (Code) | | The SplashCanvas class is used to display an image as soon as
a MIDlet is started and, possibly, show information about the coming demo
while that demo is loading.
|
Field Summary | |
final public static long | SPLASH_MIN_LENGTH The minimal amount of time to wait when a splash screen is displayed. | Image | image The image this splash screen should show. |
Method Summary | |
public void | display(Display display) | public void | paint(Graphics g) | public void | showAndWait(Display display, Displayable displayable) Shows the splash screen and waits for SPLASH_MIN_LENGTH before restoring
the input Displayable. | public void | switchTo(Display display, Canvas newCanvas) Switches to the input Display after the minimal time has elapsed. |
SPLASH_MIN_LENGTH | final public static long SPLASH_MIN_LENGTH(Code) | | The minimal amount of time to wait when a splash screen is displayed.
|
image | Image image(Code) | | The image this splash screen should show.
|
SplashCanvas | public SplashCanvas(Image image)(Code) | | Parameters: image - the image this splash screen should show. |
SplashCanvas | public SplashCanvas(String imageURL)(Code) | | Parameters: imageURL - the url for the splash screen image. |
display | public void display(Display display)(Code) | | Parameters: display - the Display on which this splash screen should paint. |
paint | public void paint(Graphics g)(Code) | | |
showAndWait | public void showAndWait(Display display, Displayable displayable)(Code) | | Shows the splash screen and waits for SPLASH_MIN_LENGTH before restoring
the input Displayable.
Parameters: display - the display on which to show the splash screen. Parameters: displayable - the displayable to restore after the help screen has been shown. |
switchTo | public void switchTo(Display display, Canvas newCanvas)(Code) | | Switches to the input Display after the minimal time has elapsed.
Parameters: display - the display to switch to. Parameters: canvas - the canvas to set after the minimal amount of time has elapsed. |
|
|