|
MDACC Biostatistics |
||||||||||
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
org.mdanderson.biostat.util.DefaultSplashScreen
DefaultSplashScreen - Creates a generic splash screen for use at application startup
Nested Class Summary |
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 | |
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
|
Fields inherited from class javax.swing.JWindow |
accessibleContext, rootPane, rootPaneCheckingEnabled |
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 | |
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 |
Method Summary | |
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. |
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 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
Constructor Detail |
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 closeMethod Detail |
public 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 arguments
|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |