Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dinopolis.util.gui
Class SplashScreen  view SplashScreen download SplashScreen.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjavax.swing.JWindow
                  extended byorg.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 Class Summary
 
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
 
Field Summary
(package private)  javax.swing.JProgressBar progress_bar_
           
(package private)  javax.swing.JLabel status_line_
           
 
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
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.
 
Method Summary
 void close()
          Close the splash screen and frees all resources.
static void main(java.lang.String[] arguments)
           
 void setProgress(int progress_value)
          Set the current progress for the splash screen.
 void setStatus(java.lang.String text)
          Set the status for the splash screen.
 void setStatus(java.lang.String text, int progress_value)
          Set the status and the current progress for the splash screen.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

progress_bar_

javax.swing.JProgressBar progress_bar_

status_line_

javax.swing.JLabel status_line_
Constructor Detail

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.

Method Detail

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)