Package nl.colorize.multimedialib.scene
Class SplashScreen
java.lang.Object
nl.colorize.multimedialib.scene.SplashScreen
- All Implemented Interfaces:
Scene
Displays a loading screen with a progress bar while the renderer is loading
media files asynchronously. The loading screen is configurable, but is
limited to shapes and colors. Images and fonts cannot be used, because they
require media files themselves. Once all media assets have been loaded,
the splash screen will automatically transition to the next scene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachProgressBar(SceneContext context) intintintintgetDelay()voidsetBarBackgroundAlpha(int barBackgroundAlpha) voidsetBarBackgroundColor(ColorRGB barBackgroundColor) voidsetBarBorderColor(ColorRGB barBorderColor) voidsetBarBorderStroke(int barBorderStroke) voidsetBarForegroundColor(ColorRGB barForegroundColor) voidsetBarHeight(int barHeight) voidsetBarWidth(int barWidth) voidvoidsetScreenBackgroundColor(ColorRGB screenBackgroundColor) voidstart(SceneContext context) Initialization logic that should be performed when the scene is started.voidupdate(SceneContext context, float deltaTime) Called during every frame update for as long as the scene is active.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.colorize.multimedialib.scene.Scene
end, isCompleted
-
Constructor Details
-
SplashScreen
-
-
Method Details
-
start
Description copied from interface:SceneInitialization logic that should be performed when the scene is started. Note that this method is called *every* time the scene is started, not just the first time.This method is optional, the default implementation does nothing.
-
attachProgressBar
-
update
Description copied from interface:SceneCalled during every frame update for as long as the scene is active.deltaTimeindicates the elapsed time since the last frame, in seconds. -
getMediaAssets
-
getNextScene
-
getLoading
-
getDelay
-
getBarWidth
public int getBarWidth() -
getBarHeight
public int getBarHeight() -
getScreenBackgroundColor
-
getBarBorderColor
-
getBarBorderStroke
public int getBarBorderStroke() -
getBarBackgroundColor
-
getBarBackgroundAlpha
public int getBarBackgroundAlpha() -
getBarForegroundColor
-
setDelay
-
setBarWidth
public void setBarWidth(int barWidth) -
setBarHeight
public void setBarHeight(int barHeight) -
setScreenBackgroundColor
-
setBarBorderColor
-
setBarBorderStroke
public void setBarBorderStroke(int barBorderStroke) -
setBarBackgroundColor
-
setBarBackgroundAlpha
public void setBarBackgroundAlpha(int barBackgroundAlpha) -
setBarForegroundColor
-