public class JavaPlatform extends AbstractPlatform
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaPlatform.Config
Defines JavaPlatform configurable parameters.
|
Platform.Typelog, runQueue| Constructor and Description |
|---|
JavaPlatform(JavaPlatform.Config config) |
| Modifier and Type | Method and Description |
|---|---|
Analytics |
analytics() |
JavaAssets |
assets() |
JavaAudio |
audio() |
JavaGraphics |
graphics() |
void |
invokeAsync(Runnable action) |
protected boolean |
isInJavaWebStart() |
Json |
json() |
Keyboard |
keyboard() |
Mouse |
mouse() |
Net |
net() |
void |
openURL(String url) |
Pointer |
pointer() |
float |
random() |
static JavaPlatform |
register()
Registers the Java platform with a default configuration.
|
static JavaPlatform |
register(JavaPlatform.Config config)
Registers the Java platform with the specified configuration.
|
RegularExpression |
regularExpression() |
void |
run(Game game) |
void |
setPropagateEvents(boolean propagate) |
void |
setTitle(String title)
Sets the title of the window.
|
Storage |
storage() |
int |
tick() |
double |
time() |
Touch |
touch() |
Platform.Type |
type() |
protected void |
unpackNatives() |
invokeLater, log, notifyFailure, notifySuccess, onExit, onPause, onResume, setLifecycleListener, uiOverlaypublic JavaPlatform(JavaPlatform.Config config)
public static JavaPlatform register()
public static JavaPlatform register(JavaPlatform.Config config)
public void setTitle(String title)
title - the window titlepublic void invokeAsync(Runnable action)
invokeAsync in class AbstractPlatformpublic Platform.Type type()
public JavaAudio audio()
public JavaGraphics graphics()
public Json json()
public Keyboard keyboard()
public Net net()
public Pointer pointer()
public Mouse mouse()
public Touch touch()
public Storage storage()
public Analytics analytics()
public JavaAssets assets()
public RegularExpression regularExpression()
public float random()
public double time()
public int tick()
public void openURL(String url)
public void setPropagateEvents(boolean propagate)
public void run(Game game)
protected void unpackNatives()
protected boolean isInJavaWebStart()
Copyright © 2013. All Rights Reserved.