Package jme3utilities.ui
Class DsEditOverlay
java.lang.Object
com.jme3.app.state.BaseAppState
jme3utilities.ui.Overlay
jme3utilities.ui.DsEditOverlay
- All Implemented Interfaces:
com.jme3.app.state.AppState
The overlay for the display-settings editor.
The overlay consists of status lines, one of which is always selected for editing.
-
Constructor Summary
ConstructorDescriptionDsEditOverlay
(DisplaySettings proposedSettings) Instantiate an uninitialized AppState. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup
(com.jme3.app.Application application) Transition this AppState from terminating to detached.void
initialize
(com.jme3.app.Application application) Initialize this AppState on the first update after it gets attached.void
update
(float tpf) Callback to update this AppState prior to rendering.Methods inherited from class jme3utilities.ui.Overlay
alignment, contentZOffset, copyBackgroundColor, copyLocation, countLines, getLocationPolicy, height, lineSpacing, onColorSpaceChange, onDisable, onEnable, onViewPortResize, padding, setAlignment, setAlignmentAll, setBackgroundColor, setBackgroundZ, setColor, setContentZOffset, setLineSpacing, setLocation, setLocationPolicy, setPadding, setText, setText, setWidth, setXMargin, setYMargin, width, xMargin, yMargin
Methods inherited from class com.jme3.app.state.BaseAppState
cleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, render, setEnabled, setId, stateAttached, stateDetached
-
Constructor Details
-
DsEditOverlay
Instantiate an uninitialized AppState.- Parameters:
proposedSettings
- the proposed display settings (not null, alias created)
-
-
Method Details
-
cleanup
public void cleanup(com.jme3.app.Application application) Transition this AppState from terminating to detached. Should be invoked only by a subclass or by the AppStateManager.Invoked once for each time
initialize(com.jme3.app.Application)
is invoked. -
initialize
public void initialize(com.jme3.app.Application application) Initialize this AppState on the first update after it gets attached.- Overrides:
initialize
in classOverlay
- Parameters:
application
- application which owns this state (not null)
-
update
public void update(float tpf) Callback to update this AppState prior to rendering. (Invoked once per frame while the state is attached and enabled.)- Specified by:
update
in interfacecom.jme3.app.state.AppState
- Overrides:
update
in classcom.jme3.app.state.BaseAppState
- Parameters:
tpf
- time interval between frames (in seconds, ≥0)
-