org.mdanderson.biostat.util
public class DefaultSplashScreen extends JWindow
JWindow.AccessibleJWindow
Window.AccessibleAWTWindow
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected AboutPanel |
aboutPanel |
static long |
FIVE_SECONDS |
static long |
FOUR_SECONDS |
static long |
ONE_SECOND |
protected JLabel |
statusLine |
protected JPanel |
statusPanel |
static long |
THREE_SECONDS |
static long |
TWO_SECONDS |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
DefaultSplashScreen(AboutPanel aboutPanel,
Frame frame,
long waitTime)
Class constructor specifying about panel, frame, and delay
|
DefaultSplashScreen(ImageIcon image,
Frame frame)
Class constructor specifying image and frame
|
DefaultSplashScreen(ImageIcon image,
Frame frame,
long waitTime)
Class constructor specifying image, frame, and delay
|
DefaultSplashScreen(String imageFileName,
Frame frame)
Class constructor specifying image filename and frame
|
DefaultSplashScreen(String imageFileName,
Frame frame,
long waitTime)
Class constructor specifying image filename, frame, and delay
|
Modifier and Type | Method and Description |
---|---|
protected void |
centerOnScreen()
Centers the splashscreen in the middle of the screen
|
protected void |
close()
Closes the splashscreen and releases all native screen resources
|
protected JPanel |
createStatusPanel()
Creates a pane for displaying status information
|
void |
display()
Displays the splashscreen on the screen, centered on its parent
|
static void |
main(String[] argv)
Main entry-point for the DefaultSplashScreen class
|
void |
setBannerLine(String banner)
Sets the banner to be displayed
|
void |
setCopyrightLine(String copyright)
Sets the copyright to be displayed
|
void |
setCopyrightVisible(boolean visible)
Shows or hides the copyright information depending on the
value of parameter
|
void |
setLegalitiesLine(String legalities)
Sets the legal text to be displayed
|
void |
setLegalitiesVisible(boolean visible)
Shows or hides the legal information depending on the
value of parameter
|
void |
setStatusLine(String status)
Sets the application status text to be displayed
|
void |
setStatusVisible(boolean visible)
Shows or hides the application status information depending on the
value of parameter
|
void |
setTimeOut(long waitTime)
Sets the amount of time to display the splash screen.
|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update, windowInit
addNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final long ONE_SECOND
public static final long TWO_SECONDS
public static final long THREE_SECONDS
public static final long FOUR_SECONDS
public static final long FIVE_SECONDS
protected AboutPanel aboutPanel
protected JPanel statusPanel
protected JLabel statusLine
public DefaultSplashScreen(String imageFileName, Frame frame)
imageFileName
- string containing image filename to displayframe
- parent componentpublic DefaultSplashScreen(String imageFileName, Frame frame, long waitTime)
imageFileName
- string containing image filename to displayframe
- parent componentwaitTime
- milliseconds to delay before auto closepublic DefaultSplashScreen(ImageIcon image, Frame frame)
image
- image to displayframe
- parent componentpublic DefaultSplashScreen(ImageIcon image, Frame frame, long waitTime)
image
- image to displayframe
- parent componentwaitTime
- milliseconds to delay before auto closepublic DefaultSplashScreen(AboutPanel aboutPanel, Frame frame, long waitTime)
aboutPanel
- instance of AboutPanel
objectframe
- parent componentwaitTime
- milliseconds to delay before auto closepublic void display()
public void setBannerLine(String banner)
banner
- string specifying banner text to be displayedAboutPanel
public void setCopyrightLine(String copyright)
copyright
- string specifying banner text to be displayedAboutPanel
public void setCopyrightVisible(boolean visible)
visible
- if true, shows copyright information; otherwise, hides itAboutPanel
public void setLegalitiesLine(String legalities)
legalities
- string specifying legal text to be displayedAboutPanel
public void setLegalitiesVisible(boolean visible)
visible
- if true, shows legal information; otherwise, hides itAboutPanel
public void setStatusLine(String status)
status
- string specifying application status text to be displayedpublic void setStatusVisible(boolean visible)
visible
- if true, shows legal information; otherwise, hides itpublic void setTimeOut(long waitTime)
waitTime
- amount of time in millisecondsprotected void centerOnScreen()
protected void close()
protected JPanel createStatusPanel()
JPanel
representing status panelpublic static void main(String[] argv)
argv
- string array containing command line argumentsCopyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.