|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.control.SwtSplashScreenLauncher
An implementation of
ApplicationLauncher that uses a
splash-screen to display the
LaunchTasks that get executed
currently.
The method setMessageFont(Font) can be used to customize the
font that is used to display the message texts on the splash-screen.
The current message-font can be queried by invoking
getMessageFont().
| Constructor Summary | |
SwtSplashScreenLauncher(org.eclipse.swt.widgets.Display display,
java.lang.String title,
org.eclipse.swt.graphics.Image splash)
Constructs a new SwtSplashScreenLauncher with the given title
and Image.
|
|
| Method Summary | |
org.eclipse.swt.graphics.Font |
getMessageFont()
Returns the font that is used to display the messages in the splash-screen. |
boolean |
launch()
Launches all of the registered tasks. |
void |
registerLaunchTask(LaunchTask launchtask)
Adds a launchtask to the splash screen launcher. |
void |
setHeight(int height)
Sets the height of the splash screen. |
void |
setMessageFont(org.eclipse.swt.graphics.Font messagefont)
Returns the font that is used to display the messages in the splash-screen. |
void |
setUiManager(UIManager uiManager)
sets the UIManager |
void |
setWidth(int width)
Sets the width of the splash screen. |
void |
unregisterLaunchTask(LaunchTask launchtask)
Removes a launchtask from the splash screen launcher. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtSplashScreenLauncher(org.eclipse.swt.widgets.Display display,
java.lang.String title,
org.eclipse.swt.graphics.Image splash)
Constructs a new SwtSplashScreenLauncher with the given title
and Image.
display - the display used to create the internal Shelltitle - a title to be displayed on the splash screensplash - the splash screen image| Method Detail |
public org.eclipse.swt.graphics.Font getMessageFont()
public void setMessageFont(org.eclipse.swt.graphics.Font messagefont)
messagefont - the font that is used to display slash-screen messages.public void setUiManager(UIManager uiManager)
UIManager
uiManager - the uimanagerpublic boolean launch()
ApplicationLauncher
launch in interface ApplicationLauncherpublic void registerLaunchTask(LaunchTask launchtask)
ApplicationLauncher
registerLaunchTask in interface ApplicationLauncherlaunchtask - the task to register with the launcher.public void unregisterLaunchTask(LaunchTask launchtask)
ApplicationLauncher
unregisterLaunchTask in interface ApplicationLauncherlaunchtask - the task to unregister from the launcher.public void setHeight(int height)
Sets the height of the splash screen.
height - he height of the splash screen.public void setWidth(int width)
Sets the width of the splash screen.
width - the width of the splash screen.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||