Class 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 Detail

      • MenuScene

        public MenuScene()
    • 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: Scene
        Initiallization logic that should be performed every time the scene is started. This method is called by the application that contains the scene.
        Specified by:
        start in interface Scene
      • update

        public final void update​(Application app,
                                 float deltaTime)
        Specified by:
        update in interface Scene
      • drawBackground

        public abstract void drawBackground​(GraphicsContext2D graphics)