public class AWTContext
extends java.lang.Object
implements com.jme3.system.JmeContext
context that is dedicated to AWT component rendering.
This class is based on the JavaFX original code provided by Alexander Brui (see JME3-FX)
| Modifier and Type | Field and Description |
|---|---|
protected com.jme3.system.JmeContext |
backgroundContext
The background context.
|
protected AWTKeyInput |
keyInput
The key input.
|
protected AWTMouseInput |
mouseInput
The mouse input.
|
protected com.jme3.system.AppSettings |
settings
The settings.
|
| Constructor and Description |
|---|
AWTContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(boolean waitFor) |
protected com.jme3.system.JmeContext |
createBackgroundContext() |
protected com.jme3.system.AppSettings |
createSettings() |
void |
destroy(boolean waitFor) |
int |
getHeight() |
com.jme3.input.JoyInput |
getJoyInput() |
AWTKeyInput |
getKeyInput() |
AWTMouseInput |
getMouseInput() |
com.jme3.opencl.Context |
getOpenCLContext() |
com.jme3.renderer.Renderer |
getRenderer() |
com.jme3.system.AppSettings |
getSettings() |
com.jme3.system.Timer |
getTimer() |
com.jme3.input.TouchInput |
getTouchInput() |
com.jme3.system.JmeContext.Type |
getType() |
int |
getWidth() |
boolean |
isCreated() |
boolean |
isRenderable() |
void |
restart() |
void |
setAutoFlushFrames(boolean enabled) |
void |
setHeight(int height) |
void |
setSettings(com.jme3.system.AppSettings settings) |
void |
setSystemListener(com.jme3.system.SystemListener listener) |
void |
setTitle(java.lang.String title) |
void |
setWidth(int width) |
protected final com.jme3.system.AppSettings settings
protected final AWTKeyInput keyInput
protected final AWTMouseInput mouseInput
protected com.jme3.system.JmeContext backgroundContext
public int getHeight()
public void setHeight(int height)
height - the current height.public int getWidth()
public void setWidth(int width)
width - the current width.protected com.jme3.system.AppSettings createSettings()
protected com.jme3.system.JmeContext createBackgroundContext()
public com.jme3.system.JmeContext.Type getType()
getType in interface com.jme3.system.JmeContextpublic void setSettings(com.jme3.system.AppSettings settings)
setSettings in interface com.jme3.system.JmeContextpublic void setSystemListener(com.jme3.system.SystemListener listener)
setSystemListener in interface com.jme3.system.JmeContextpublic com.jme3.system.AppSettings getSettings()
getSettings in interface com.jme3.system.JmeContextpublic com.jme3.renderer.Renderer getRenderer()
getRenderer in interface com.jme3.system.JmeContextpublic com.jme3.opencl.Context getOpenCLContext()
getOpenCLContext in interface com.jme3.system.JmeContextpublic AWTMouseInput getMouseInput()
getMouseInput in interface com.jme3.system.JmeContextpublic AWTKeyInput getKeyInput()
getKeyInput in interface com.jme3.system.JmeContextpublic com.jme3.input.JoyInput getJoyInput()
getJoyInput in interface com.jme3.system.JmeContextpublic com.jme3.input.TouchInput getTouchInput()
getTouchInput in interface com.jme3.system.JmeContextpublic com.jme3.system.Timer getTimer()
getTimer in interface com.jme3.system.JmeContextpublic void setTitle(java.lang.String title)
setTitle in interface com.jme3.system.JmeContextpublic boolean isCreated()
isCreated in interface com.jme3.system.JmeContextpublic boolean isRenderable()
isRenderable in interface com.jme3.system.JmeContextpublic void setAutoFlushFrames(boolean enabled)
setAutoFlushFrames in interface com.jme3.system.JmeContextpublic void create(boolean waitFor)
create in interface com.jme3.system.JmeContextpublic void restart()
restart in interface com.jme3.system.JmeContextpublic void destroy(boolean waitFor)
destroy in interface com.jme3.system.JmeContext