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,
String path)
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, String path)
name - the name under which to register the font.path - the path to the font resource (relative to the asset manager's path prefix).
Currently only TrueType (.ttf) fonts are supported.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.