uic.widgets
Class SplashScreen

java.lang.Object
  extended byuic.widgets.Splash
      extended byuic.widgets.SplashScreen

public class SplashScreen
extends Splash

A Splash screen that will show a picture and possibly a progressbar. The splash screen is written for speed; on my 800 mHz machine it takes less then a second for this splas to be visible.
Positioning of the splash is in the center of the current screen (choosing the active monitor on a multi screen setup).
The image can be any format the respective JRE supports using ImageIO, using the latter immidiately also means this splashscreen only works with JRE 1.4 and later. Use the Splash superclass which needs an Image, but is usable on JRE 1.2 and later.


Constructor Summary
SplashScreen(InputStream imageData, boolean showProgress)
          Create and show a splashScreen.
SplashScreen(String filename, boolean showProgress)
          Create and show a splashScreen.
SplashScreen(URL imageLocation, boolean showProgress)
          Create and show a splashScreen.
 
Methods inherited from class uic.widgets.Splash
close, setProgress, setProgressBarLocation, setProgressBarLocation, setProgressBarLocation, setProgressMax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplashScreen

public SplashScreen(String filename,
                    boolean showProgress)
             throws IOException
Create and show a splashScreen. Convenience constructor using a filename that is immidiately put into a URL.


SplashScreen

public SplashScreen(InputStream imageData,
                    boolean showProgress)
             throws IOException
Create and show a splashScreen.

Parameters:
imageData - the image data. Any imageData that ImageIO accepts is possible here.
showProgress - create a progress bar.

SplashScreen

public SplashScreen(URL imageLocation,
                    boolean showProgress)
             throws IOException
Create and show a splashScreen.

Parameters:
imageLocation - the fully qualified filename where the image comes from. Any imageformat that ImageIO accepts is possible here.
showProgress - create a progress bar.


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence