public class TLcySplashScreenMediator extends Object
ILcyLucyEnv
listeners to update its status, text and progress:
ILcyAddOnContainerListener
to display the loaded add-on names as textILcyLucyEnvListener
to determine when to dispose the splash screenILcdStatusListener
to display the progress in a progress barSplashScreen
Modifier and Type | Method and Description |
---|---|
static void |
install(ILcyLucyEnv aLucyEnv,
Point aRelativeTextLocation,
Font aFont,
Color aFontColor)
Paints the add-on loading progress information on top of the native Java splash screen.
|
static void |
install(ILcyLucyEnv aLucyEnv,
String aImageFilename,
boolean aShowText,
Point aRelativeTextLocation,
Font aFont,
Color aFontColor,
boolean aShowProgressBar,
int aProgressBarHeight,
Color aProgressBarColor)
Creates a splash screen showing the add-ons that are loaded and a progress bar at the bottom of the splash screen.
|
static void |
install(ILcyLucyEnv aLucyEnv,
String aImageFilename,
Point aRelativeTextLocation,
Font aFont,
Color aFontColor)
(Creates and) updates the splash screen to show the add-on loading progress information.
|
public static void install(ILcyLucyEnv aLucyEnv, Point aRelativeTextLocation, Font aFont, Color aFontColor)
java.awt.SplashScreen
on how to activate the Java splash screen.aLucyEnv
- The ILcyLucyEnv
aRelativeTextLocation
- Location of the text, relative to the edge of the splash screen. A
positive x or y value means relative from the left or top side. A
negative x or y value means relative from the right or bottom
side. For example, if a y-value of -10 is specified, the bottom
of the text is 10 pixels from the bottom of the splash screen.aFont
- The font to use for the text.aFontColor
- The font color.public static void install(ILcyLucyEnv aLucyEnv, String aImageFilename, Point aRelativeTextLocation, Font aFont, Color aFontColor)
java.awt.SplashScreen
on how to activate the Java splash screen.aLucyEnv
- The ILcyLucyEnv
aImageFilename
- The location of the image to use as splash screen.aRelativeTextLocation
- Location of the text, relative to the edge of the splash screen. A
positive x or y value means relative from the left or top side. A
negative x or y value means relative from the right or bottom
side. For example, if a y-value of -10 is specified, the bottom
of the text is 10 pixels from the bottom of the splash screen.aFont
- The font to use for the text.aFontColor
- The font color.public static void install(ILcyLucyEnv aLucyEnv, String aImageFilename, boolean aShowText, Point aRelativeTextLocation, Font aFont, Color aFontColor, boolean aShowProgressBar, int aProgressBarHeight, Color aProgressBarColor)
java.awt.SplashScreen
on how to activate the Java splash screen.aLucyEnv
- The ILcyLucyEnv
aImageFilename
- The location of the image to use as splash screen.aShowText
- true
when the add-on which is currently loading should be displayed as text
on the splash screen.aRelativeTextLocation
- Location of the text, relative to the edge of the splash screen. A
positive x or y value means relative from the left or top side. A
negative x or y value means relative from the right or bottom
side. For example, if a y-value of -10 is specified, the bottom
of the text is 10 pixels from the bottom of the splash screen.aFont
- The font to use for the text.aFontColor
- The font color.aShowProgressBar
- true
when a progress bar should be shownaProgressBarHeight
- The height of the progress baraProgressBarColor
- The color to use for the progress bar