Package nl.colorize.multimedialib.scene
Class MenuScene
- java.lang.Object
-
- nl.colorize.multimedialib.scene.MenuScene
-
- All Implemented Interfaces:
Scene
public abstract class MenuScene extends java.lang.Object implements Scene
Scene implementation specifically intended for menu systems. The scene consists of a number of menu widgets that are created when the scene is started, and are then displayed throughout the scene.
-
-
Constructor Summary
Constructors Constructor Description MenuScene()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(Widget widget)abstract voiddrawBackground(GraphicsContext2D graphics)voidremove(Widget widget)voidrender(Application app, GraphicsContext2D graphics)abstract voidstart(Application app)Initiallization logic that should be performed every time the scene is started.voidupdate(Application app, float deltaTime)
-
-
-
Method Detail
-
add
public void add(Widget widget)
-
remove
public void remove(Widget widget)
-
start
public abstract void start(Application app)
Description copied from interface:SceneInitiallization logic that should be performed every time the scene is started. This method is called by the application that contains the scene.
-
update
public final void update(Application app, float deltaTime)
-
render
public final void render(Application app, GraphicsContext2D graphics)
-
drawBackground
public abstract void drawBackground(GraphicsContext2D graphics)
-
-