playn.java
Class JavaPlatform.Config

java.lang.Object
  extended by playn.java.JavaPlatform.Config
Enclosing class:
JavaPlatform

public static class JavaPlatform.Config
extends Object

Defines JavaPlatform configurable parameters.


Field Summary
 boolean emulateTouch
          If set, emulates Touch and disables Mouse.
 boolean headless
          Configures platform in headless mode; useful for unit testing.
 int height
          The height of the PlayN window, in pixels.
 float scaleFactor
          The graphics scale factor.
 String storageFileName
          Dictates the name of the temporary file used by JavaStorage.
 int width
          The width of the PlayN window, in pixels.
 
Constructor Summary
JavaPlatform.Config()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scaleFactor

public float scaleFactor
The graphics scale factor. Allows simulating HiDPI mode during testing.


headless

public boolean headless
Configures platform in headless mode; useful for unit testing.


storageFileName

public String storageFileName
Dictates the name of the temporary file used by JavaStorage. Configure this if you want to run multiple sessions without overwriting one another's storage.


width

public int width
The width of the PlayN window, in pixels.


height

public int height
The height of the PlayN window, in pixels.


emulateTouch

public boolean emulateTouch
If set, emulates Touch and disables Mouse. For testing.

Constructor Detail

JavaPlatform.Config

public JavaPlatform.Config()


Copyright © 2012. All Rights Reserved.