public class UiContainerListenerAdapter extends java.lang.Object implements UiContainerListener
UiContainerListener
. All methods are
no-op and can be overridden individually.Constructor and Description |
---|
UiContainerListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
controllerTypeChanged(UiContainer container,
ControllerType oldControllerType,
ControllerType newControllerType)
Called when the
ControllerType changes |
void |
inputSourceChanged(UiContainer container,
InputSource oldInputSource,
InputSource newInputSource)
Called when the
InputSource changes |
void |
onElementAction(UiContainer container,
UiElement element)
Called when a
UiElement becomes active from user input (e.g. |
void |
onScreenSizeChanged(ScreenSize screenSize)
Called when the
ScreenSize changes and the listener is registered
with a UiContainer |
void |
postInterpolate(UiContainer container,
float alpha)
Called after the
UiContainer is interpolated |
void |
postRender(UiContainer container,
Graphics g)
Called after the
UiContainer is rendered |
void |
postUpdate(UiContainer container,
float delta)
Called after the
UiContainer is updated |
void |
preInterpolate(UiContainer container,
float alpha)
Called before the
UiContainer is interpolated |
void |
preRender(UiContainer container,
Graphics g)
Called before the
UiContainer is rendered |
void |
preUpdate(UiContainer container,
float delta)
Called before the
UiContainer is updated |
public void onScreenSizeChanged(ScreenSize screenSize)
ScreenSizeListener
ScreenSize
changes and the listener is registered
with a UiContainer
onScreenSizeChanged
in interface ScreenSizeListener
screenSize
- The new ScreenSize
public void preUpdate(UiContainer container, float delta)
UiContainerListener
UiContainer
is updatedpreUpdate
in interface UiContainerListener
container
- The UiContainer
that will be updateddelta
- The frame delta valuepublic void postUpdate(UiContainer container, float delta)
UiContainerListener
UiContainer
is updatedpostUpdate
in interface UiContainerListener
container
- The UiContainer
that was updateddelta
- The frame delta valuepublic void preInterpolate(UiContainer container, float alpha)
UiContainerListener
UiContainer
is interpolatedpreInterpolate
in interface UiContainerListener
container
- The UiContainer
that will be interpolatedalpha
- The frame interpolation valuepublic void postInterpolate(UiContainer container, float alpha)
UiContainerListener
UiContainer
is interpolatedpostInterpolate
in interface UiContainerListener
container
- The UiContainer
that was interpolatedalpha
- The frame interpolation valuepublic void preRender(UiContainer container, Graphics g)
UiContainerListener
UiContainer
is renderedpreRender
in interface UiContainerListener
container
- The UiContainer
that will be renderedg
- The Graphics
contextpublic void postRender(UiContainer container, Graphics g)
UiContainerListener
UiContainer
is renderedpostRender
in interface UiContainerListener
container
- The UiContainer
that was renderedg
- The Graphics
contextpublic void inputSourceChanged(UiContainer container, InputSource oldInputSource, InputSource newInputSource)
UiContainerListener
InputSource
changesinputSourceChanged
in interface UiContainerListener
container
- The UiContainer
that the InputSource
changed onoldInputSource
- The previous InputSource
newInputSource
- The new InputSource
public void controllerTypeChanged(UiContainer container, ControllerType oldControllerType, ControllerType newControllerType)
UiContainerListener
ControllerType
changescontrollerTypeChanged
in interface UiContainerListener
container
- The UiContainer
that the ControllerType
changed onoldControllerType
- The previous ControllerType
newControllerType
- The new ControllerType
public void onElementAction(UiContainer container, UiElement element)
UiContainerListener
UiElement
becomes active from user input (e.g. click events, etc.)onElementAction
in interface UiContainerListener
container
- The UiContainer
the element became active onelement
- The UiElement
that became active