java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
javax.swing.JWindow
org.dinopolis.util.gui.SplashScreen
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable
- public class SplashScreen
- extends javax.swing.JWindow
This class is used to visualize a simple splash screen icon for a
definable amount of time. Additionally, a progress bar and a status
line can be displayed.
- Version:
- $Revision: 1.4 $
| Nested classes inherited from class javax.swing.JWindow |
javax.swing.JWindow.AccessibleJWindow |
| Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class java.awt.Window |
|
| Fields inherited from class java.awt.Container |
|
|
Constructor Summary |
SplashScreen(javax.swing.Icon banner,
int display_millis)
Constructor taking an Icon that is to be displayed and the time
to display this icon. |
SplashScreen(javax.swing.Icon banner,
int display_millis,
int progress_min_value,
int progress_max_value)
Constructor taking an Icon that is to be displayed and the time
to display this icon. |
SplashScreen(javax.swing.JLabel label,
int display_millis)
Constructor taking a label that is to be displayed and the time
to display it. |
SplashScreen(javax.swing.JLabel label,
int display_millis,
int progress_min_value,
int progress_max_value)
Constructor taking a label that is to be displayed and the time
to display it. |
SplashScreen(java.lang.String text,
int display_millis)
Constructor taking a String that is to be displayed and the time
to display it. |
SplashScreen(java.lang.String text,
int display_millis,
int progress_min_value,
int progress_max_value)
Constructor taking a String that is to be displayed and the time
to display it. |
| Methods inherited from class javax.swing.JWindow |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getLayeredPane, getPreferredSize, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update, windowInit |
| Methods inherited from class java.awt.Window |
addNotify, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
progress_bar_
javax.swing.JProgressBar progress_bar_
status_line_
javax.swing.JLabel status_line_
SplashScreen
public SplashScreen(javax.swing.Icon banner,
int display_millis)
- Constructor taking an Icon that is to be displayed and the time
to display this icon.
SplashScreen
public SplashScreen(javax.swing.Icon banner,
int display_millis,
int progress_min_value,
int progress_max_value)
- Constructor taking an Icon that is to be displayed and the time
to display this icon. Additionally, the min/max values for the
progress bar can be set. If both are equal to zero, no progress
bar and status line are displayed.
SplashScreen
public SplashScreen(java.lang.String text,
int display_millis)
- Constructor taking a String that is to be displayed and the time
to display it.
SplashScreen
public SplashScreen(java.lang.String text,
int display_millis,
int progress_min_value,
int progress_max_value)
- Constructor taking a String that is to be displayed and the time
to display it. Additionally, the min/max values for the progress
bar can be set. If both are equal to zero, no progress bar and
status line are displayed.
SplashScreen
public SplashScreen(javax.swing.JLabel label,
int display_millis)
- Constructor taking a label that is to be displayed and the time
to display it.
SplashScreen
public SplashScreen(javax.swing.JLabel label,
int display_millis,
int progress_min_value,
int progress_max_value)
- Constructor taking a label that is to be displayed and the time
to display it. Additionally, the min/max values for the progress
bar can be set. If both are equal to zero, no progress bar and
status line are displayed.
setStatus
public void setStatus(java.lang.String text,
int progress_value)
- Set the status and the current progress for the splash screen.
setStatus
public void setStatus(java.lang.String text)
- Set the status for the splash screen.
setProgress
public void setProgress(int progress_value)
- Set the current progress for the splash screen.
close
public void close()
- Close the splash screen and frees all resources.
main
public static void main(java.lang.String[] arguments)