public abstract class ApplicationAdapter extends Object implements ApplicationListener
ApplicationListener
. Derive from this and only override what you need.Constructor and Description |
---|
ApplicationAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
create()
Called when the
Application is first created. |
void |
dispose()
Called when the
Application is destroyed. |
void |
pause()
Called when the
Application is paused, usually when it's not active or visible on-screen. |
void |
render()
Called when the
Application should render itself. |
void |
resize(int width,
int height)
Called when the
Application is resized. |
void |
resume()
Called when the
Application is resumed from a paused state, usually when it regains focus. |
public void create()
ApplicationListener
Application
is first created.create
in interface ApplicationListener
public void resize(int width, int height)
ApplicationListener
Application
is resized. This can happen at any point during a non-paused state but will never happen
before a call to ApplicationListener.create()
.resize
in interface ApplicationListener
width
- the new width in pixelsheight
- the new height in pixelspublic void render()
ApplicationListener
Application
should render itself.render
in interface ApplicationListener
public void pause()
ApplicationListener
Application
is paused, usually when it's not active or visible on-screen. An Application is also
paused before it is destroyed.pause
in interface ApplicationListener
public void resume()
ApplicationListener
Application
is resumed from a paused state, usually when it regains focus.resume
in interface ApplicationListener
public void dispose()
ApplicationListener
Application
is destroyed. Preceded by a call to ApplicationListener.pause()
.dispose
in interface ApplicationListener
Copyright © 2021. All rights reserved.