playn.java
Class JavaPlatform
java.lang.Object
playn.core.AbstractPlatform
playn.java.JavaPlatform
- All Implemented Interfaces:
- Platform
public class JavaPlatform
- extends AbstractPlatform
|
Nested Class Summary |
static class |
JavaPlatform.Config
Defines JavaPlatform configurable parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaPlatform
public JavaPlatform(JavaPlatform.Config config)
register
public static JavaPlatform register()
- Registers the Java platform with a default configuration.
register
public static JavaPlatform register(JavaPlatform.Config config)
- Registers the Java platform with the specified configuration.
register
@Deprecated
public static JavaPlatform register(float scaleFactor)
- Deprecated. Use
register(Config).
registerHeadless
@Deprecated
public static JavaPlatform registerHeadless()
- Deprecated. Use
register(Config).
setTitle
public void setTitle(String title)
- Sets the title of the window.
- Parameters:
title - the window title
invokeAsync
public void invokeAsync(Runnable action)
- Overrides:
invokeAsync in class AbstractPlatform
type
public Platform.Type type()
audio
public playn.java.JavaAudio audio()
graphics
public JavaGraphics graphics()
json
public Json json()
keyboard
public Keyboard keyboard()
net
public Net net()
pointer
public Pointer pointer()
mouse
public Mouse mouse()
touch
public Touch touch()
storage
public Storage storage()
analytics
public Analytics analytics()
assets
public JavaAssets assets()
regularExpression
public RegularExpression regularExpression()
random
public float random()
time
public double time()
openURL
public void openURL(String url)
setPropagateEvents
public void setPropagateEvents(boolean propagate)
run
public void run(Game game)
Copyright © 2012. All Rights Reserved.