|
||||||||||
| 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
info.jonclark.gui.SplashImage
public class SplashImage
A class to make a very nice splash screen, very quickly. Note: Don't use transparency and shadow together and expect it to look good.
| Field Summary |
|---|
| 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 | |
|---|---|
SplashImage(BufferedImage image,
boolean addShadow,
boolean honorTransparency)
Constructs a new SplashImage object |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
A main method, for demonstration purposes. |
void |
paint(Graphics g)
Paints the image on the screen. |
static void |
showSplashImage(BufferedImage image,
boolean addShadow,
boolean honorTransparency,
int msToDisplay)
Show an image on the screen in the style of a splash screen(with no border or decorations) for a given amount of time. |
static void |
showSplashImage(InputStream imageStream,
boolean addShadow,
boolean honorTransparency,
int msToDisplay)
Show an image on the screen in the style of a splash screen(with no border or decorations) for a given amount of time. |
| Methods inherited from class javax.swing.JWindow |
|---|
getAccessibleContext, getContentPane, getGlassPane, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SplashImage(BufferedImage image,
boolean addShadow,
boolean honorTransparency)
image - addShadow - | Method Detail |
|---|
public static void showSplashImage(InputStream imageStream,
boolean addShadow,
boolean honorTransparency,
int msToDisplay)
throws IOException
imageStream - The image input stream (such as a FileInputStream)addShadow - Should we add a shadow to the splash screen?honorTransparency - Leave transparency from GIF or PNG file in-tact?msToDisplay - The number of milliseconds this image will display
before disappearing
IOException
public static void showSplashImage(BufferedImage image,
boolean addShadow,
boolean honorTransparency,
int msToDisplay)
throws IOException
image - The buffered image that will be displayedaddShadow - Should we add a shadow to the splash screen?honorTransparency - Leave transparency from GIF or PNG file in-tact?msToDisplay - The number of milliseconds this image will display
before disappearing
IOExceptionpublic void paint(Graphics g)
paint in class Container
public static void main(String[] args)
throws Exception
args -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||