Class ScreenAdapter

  • All Implemented Interfaces:
    Screen

    public class ScreenAdapter
    extends java.lang.Object
    implements Screen
    Convenience implementation of Screen. Derive from this and only override what you need.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScreenAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Called when this screen should release all resources.
      void hide()
      Called when this screen is no longer the current screen for a Game.
      void pause()  
      void render​(float delta)
      Called when the screen should render itself.
      void resize​(int width, int height)  
      void resume()  
      void show()
      Called when this screen becomes the current screen for a Game.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScreenAdapter

        public ScreenAdapter()
    • Method Detail

      • render

        public void render​(float delta)
        Description copied from interface: Screen
        Called when the screen should render itself.
        Specified by:
        render in interface Screen
        Parameters:
        delta - The time in seconds since the last render.
      • show

        public void show()
        Description copied from interface: Screen
        Called when this screen becomes the current screen for a Game.
        Specified by:
        show in interface Screen
      • hide

        public void hide()
        Description copied from interface: Screen
        Called when this screen is no longer the current screen for a Game.
        Specified by:
        hide in interface Screen
      • dispose

        public void dispose()
        Description copied from interface: Screen
        Called when this screen should release all resources.
        Specified by:
        dispose in interface Screen