public abstract class Screen extends Object implements Paintable
ScreenStack
Modifier and Type | Field and Description |
---|---|
GroupLayer |
layer
The layer on which all of this screen's UI must be placed.
|
Constructor and Description |
---|
Screen() |
Modifier and Type | Method and Description |
---|---|
float |
height()
Returns the height of this screen.
|
void |
hideTransitionStarted()
Called when this screen's transition out of view has started.
|
void |
paint(Clock clock)
Called on every paint, while a screen is visible.
|
void |
showTransitionCompleted()
Called when this screen's transition into view has completed.
|
void |
update(int delta)
Called on every update, while a screen is visible.
|
void |
wasAdded()
Called when a screen is added to the screen stack for the first time.
|
void |
wasHidden()
Called when a screen is no longer the top screen (having either been pushed down by another
screen, or popped off the stack).
|
void |
wasRemoved()
Called when a screen has been removed from the stack.
|
void |
wasShown()
Called when a screen becomes the top screen, and is therefore made visible.
|
float |
width()
Returns the width of this screen.
|
public final GroupLayer layer
public float width()
public float height()
public void wasAdded()
public void wasShown()
public void wasHidden()
public void wasRemoved()
wasHidden()
, though not always immediately.public void showTransitionCompleted()
wasShown()
is called
immediately before the transition begins, and this method is called when it ends.public void hideTransitionStarted()
wasHidden()
is called
when the hide transition completes.public void update(int delta)
Copyright © 2015. All Rights Reserved.