|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
org.simbrain.workspace.SplashWindow
public final class SplashWindow
SplashWindow
Usage: MyApplication is your application class. Create a Splasher class which opens the splash window, invokes the main method of your Application class, and disposes the splash window afterwards. Please note that we want to keep the Splasher class and the SplashWindow class as small as possible. The less code and the less classes must be loaded into the JVM to open the splash screen, the faster it will appear.
class Splasher {
public static void main(String[] args) {
SplashWindow.splash(Startup.class.getResource("splash.gif"));
MyApplication.main(args);
SplashWindow.disposeSplash();
}
}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
|---|---|
static void |
disposeSplash()
Closes the splash window. |
static void |
invokeMain(String className,
String[] args)
Invokes the main method of the provided class name. |
void |
paint(Graphics g)
Paints the image on the window. |
static void |
splash(Image image)
Open's a splash window using the specified image. |
void |
update(Graphics g)
Updates the display area of the window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void update(Graphics g)
update in class Containerg - Graphics to be updatedpublic void paint(Graphics g)
paint in class Containerg - Graphics to be paintedpublic static void splash(Image image)
image - The splash image.public static void disposeSplash()
public static void invokeMain(String className,
String[] args)
className - Name of class to be invokedargs - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||