public class FocusManagerState
extends com.jme3.app.state.BaseAppState
Constructor and Description |
---|
FocusManagerState() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(com.jme3.app.Application app) |
static FocusTarget |
findFocusTarget(com.jme3.scene.Spatial s) |
com.jme3.scene.Spatial |
getFocus() |
FocusNavigationState |
getFocusNavigationState() |
protected java.util.List<com.jme3.scene.Spatial> |
getHierarchy(com.jme3.scene.Spatial s) |
protected void |
initialize(com.jme3.app.Application app) |
protected boolean |
isConnected(java.util.List<com.jme3.scene.Spatial> hierarchy)
Returns true if the specified hierarchy list is still
as fully connected as it was when original set, meaning that all spatials
except the first still have valid parents that are also the previous
item in the list.
|
protected void |
onDisable() |
protected void |
onEnable() |
boolean |
releaseFocus(com.jme3.scene.Spatial focus)
Clears the current focus if the specified spatial is still
in the current focus chain.
|
void |
setFocus(com.jme3.scene.Spatial focus) |
void |
setFocusNavigationState(FocusNavigationState focusNavigationState) |
void |
update(float tpf) |
protected void |
updateFocusHierarchy() |
public static FocusTarget findFocusTarget(com.jme3.scene.Spatial s)
public void setFocusNavigationState(FocusNavigationState focusNavigationState)
public FocusNavigationState getFocusNavigationState()
public void setFocus(com.jme3.scene.Spatial focus)
public boolean releaseFocus(com.jme3.scene.Spatial focus)
public com.jme3.scene.Spatial getFocus()
protected void initialize(com.jme3.app.Application app)
initialize
in class com.jme3.app.state.BaseAppState
protected void cleanup(com.jme3.app.Application app)
cleanup
in class com.jme3.app.state.BaseAppState
public void update(float tpf)
update
in interface com.jme3.app.state.AppState
update
in class com.jme3.app.state.BaseAppState
protected java.util.List<com.jme3.scene.Spatial> getHierarchy(com.jme3.scene.Spatial s)
protected boolean isConnected(java.util.List<com.jme3.scene.Spatial> hierarchy)
protected void updateFocusHierarchy()
protected void onEnable()
onEnable
in class com.jme3.app.state.BaseAppState
protected void onDisable()
onDisable
in class com.jme3.app.state.BaseAppState