Interface Scene

  • All Superinterfaces:
    Renderable, Updatable
    All Known Implementing Classes:
    Button, ComplexScene, DemoApplication, EffectManager, Form, SelectBox, TextField, TextLabel, Widget

    public interface Scene
    extends Updatable, Renderable
    Represents a discrete part or phase of an application, that is active for some period of time. Simple applications might consist of a single scene, complex applications can have dozens. Scenes can contain logic, rendering, though they will typically do both.

    Scenes will receive updates at various points throughout their life cycle: when the scene is started (which can occur multiple times depending on the application flow), and then frame updates and rendering when the scene is active.

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void end()
      Clean-up logic that is performed every time the scene ends.
      default void start()
      Initiallization logic that is performed every time the scene is started.
      • Methods inherited from interface nl.colorize.multimedialib.renderer.Renderable

        render
      • Methods inherited from interface nl.colorize.multimedialib.renderer.Updatable

        update
    • Method Detail

      • start

        default void start()
        Initiallization logic that is performed every time the scene is started. Implementing this method is optional, the default implementation does nothing.
      • end

        default void end()
        Clean-up logic that is performed every time the scene ends. Implementing this method is optional, the default implementation does nothing.