| 
 | ||||||||||
| 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
javax.swing.JWindow
de.fhg.igd.ui.SplashScreen
Provides an introduction window as "splash screen"
 Derived from a regular JWindow (Java-Swing), this class
 provides an image window surrounded by a thin border,
 which can be used to display introducing information
 like program logo or copyright.
 After the window has been activated through the run
 method it will be shown for a specified timeout period.
 Furthermore it is possible to directly hide the window
 by clicking on it or calling the stop method.
| Nested Class Summary | |
| (package private)  class | SplashScreen.HideIntroActionInternal class to react on mouse events. | 
| Nested classes inherited from class javax.swing.JWindow | 
| JWindow.AccessibleJWindow | 
| Nested classes inherited from class java.awt.Window | 
| Window.AccessibleAWTWindow | 
| Nested classes inherited from class java.awt.Container | 
| Container.AccessibleAWTContainer | 
| Nested classes inherited from class java.awt.Component | 
| Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | |
| static String | OPT_DESCRThe ArgsParseroption descriptor for the case 
 that this class is initiated from command line. | 
| static int | TIMEOUTThe default timeout for the splash screen. | 
| private  int | timeout_Stores the current timeout for the splash screen. | 
| private  Object | waitLock_Lock object for synchronization purpose. | 
| Fields inherited from class javax.swing.JWindow | 
| accessibleContext, rootPane, rootPaneCheckingEnabled | 
| Fields inherited from class java.awt.Window | 
|  | 
| Fields inherited from class java.awt.Container | 
|  | 
| 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 | 
| Constructor Summary | |
| private  | SplashScreen()Default constructor is private. | 
|   | SplashScreen(Image image)Constructor, which initializes the splash screen with the given image. | 
|   | SplashScreen(ImageIcon imageIcon)Constructor, which initializes the splash screen with the given image icon. | 
|   | SplashScreen(URL imageUrl)Constructor, which initializes the splash screen with the image (GIF or JPG) from the given URL. | 
| Method Summary | |
|  int | getTimeout()Get the current timeout for the splash screen. | 
| static void | main(String[] argv)Main method provides following command line options: help, url and timeout. | 
|  void | run()Shows the splash screen window. | 
|  void | setTimeout(int timeout)Sets the timeout for the splash screen. | 
|  void | stop()Hides the splash screen window again. | 
| Methods inherited from class javax.swing.JWindow | 
| addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update, windowInit | 
| Methods inherited from class java.lang.Object | 
| clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final String OPT_DESCR
ArgsParser option descriptor for the case 
 that this class is initiated from command line.
public static final int TIMEOUT
private int timeout_
private Object waitLock_
| Constructor Detail | 
private SplashScreen()
public SplashScreen(URL imageUrl)
imageUrl - locates the image to be displayed.public SplashScreen(Image image)
image - image to be displayed.public SplashScreen(ImageIcon imageIcon)
| Method Detail | 
public void setTimeout(int timeout)
timeout is 0,
 the splash screen window will only be closed
 by clicking on it.
timeout - The timeout to set.public int getTimeout()
public void run()
stop method.
run in interface Runnablepublic void stop()
public static void main(String[] argv)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||