|
||||||||||
| 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.tbee.swing.SplashScreen
public class SplashScreen
Class representing an application splash screen.
Typical usage:
SplashScreen splashScreen = new SplashScreen("/com/company/splash.jpg");
splashScreen.open();
...
splashScreen.close();
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JWindow |
|---|
JWindow.AccessibleJWindow |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| 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 | |
|---|---|
SplashScreen(Image image)
Create a new splash screen using the provided image |
|
SplashScreen(String imageFileName)
Create a new splash screen object of the specified image. |
|
SplashScreen(URL imageUrl)
Create a new splash screen object of the specified URL. |
|
| Method Summary | |
|---|---|
static SplashScreen |
basic(int width,
int height,
Image icon,
JLabel title,
JLabel subtitle,
Color color1,
Color color2)
Create a simple start screen |
void |
close()
Close the splash screen. |
static SplashScreen |
eye(String title,
String subtitle)
Create a simple start screen |
static SplashScreen |
knowledgeplaza(String title,
String subtitle)
Create a simple start screen |
void |
open()
Open the splash screen and keep it until close() is called |
void |
open(int nMilliseconds)
Open the splash screen and keep it open for the specified duration or until close() is called explicitly. |
void |
paint(Graphics graphics)
Paint the splash screen window. |
static SplashScreen |
softworks(String title,
String subtitle)
Create a simple start screen |
static SplashScreen |
softworksAerith(String title,
String subtitle)
Create a simple start screen |
| Methods inherited from class javax.swing.JWindow |
|---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update, windowInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public SplashScreen(String imageFileName)
imageFileName - Name of image file resource to act as splash screen.public SplashScreen(URL imageUrl)
imageUrl - Url of image file resource to act as splash screen.public SplashScreen(Image image)
imageUrl - Url of image file resource to act as splash screen.| Method Detail |
|---|
public void open()
public void open(int nMilliseconds)
public void close()
public void paint(Graphics graphics)
paint in class Containergraphics - The graphics instance.
public static SplashScreen basic(int width,
int height,
Image icon,
JLabel title,
JLabel subtitle,
Color color1,
Color color2)
width - height - icon - title - subtitle - color1 - color2 - null for plain color, otherwise vertical gradient
public static SplashScreen eye(String title,
String subtitle)
public static SplashScreen softworks(String title,
String subtitle)
public static SplashScreen softworksAerith(String title,
String subtitle)
public static SplashScreen knowledgeplaza(String title,
String subtitle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||