public abstract class JavaGraphics extends Graphics
defaultRenderTarget, gl, viewSize| Modifier and Type | Method and Description |
|---|---|
TextLayout |
layoutText(String text,
TextFormat format) |
TextLayout[] |
layoutText(String text,
TextFormat format,
TextWrap wrap) |
void |
registerFont(String name,
Font font)
Registers a font with the graphics system.
|
abstract void |
setSize(int width,
int height,
boolean fullscreen)
Changes the size of the PlayN window.
|
createCanvas, createCanvas, createTexture, createTexture, queueForDispose, scale, screenSizepublic void registerFont(String name, Font font)
name - the name under which to register the font.font - the Java font, which can be loaded from a path via JavaAssets.getFont(java.lang.String).public abstract void setSize(int width,
int height,
boolean fullscreen)
public TextLayout layoutText(String text, TextFormat format)
layoutText in class Graphicspublic TextLayout[] layoutText(String text, TextFormat format, TextWrap wrap)
layoutText in class GraphicsCopyright © 2015. All Rights Reserved.