public class GL2ES2TextDrawer extends AbstractTextDrawer
AbstractTextDrawer.GLFontMetrics
Constructor and Description |
---|
GL2ES2TextDrawer() |
GL2ES2TextDrawer(TextPipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the helper object.
|
void |
drawString(AttributedCharacterIterator iterator,
float x,
float y) |
void |
drawString(AttributedCharacterIterator iterator,
int x,
int y) |
void |
drawString(String string,
float x,
float y) |
void |
drawString(String string,
int x,
int y) |
void |
setG2D(GLGraphics2D g2d)
Sets the current
GLGraphics2D parent. |
getFont, getFontMetrics, getFontRenderContext, pop, push, resetHints, setFont, setHint
public GL2ES2TextDrawer()
public GL2ES2TextDrawer(TextPipeline pipeline)
public void setG2D(GLGraphics2D g2d)
G2DDrawingHelper
GLGraphics2D
parent. The current GL
and
GLContext
objects can be accessed from this. This should clear all
internal stacks in the helper object because previous painting iterations
may not have called dispose() for each time they called create().setG2D
in interface G2DDrawingHelper
setG2D
in class AbstractTextDrawer
g2d
- The parent context for subsequent drawing operations.public void dispose()
G2DDrawingHelper
Graphics2D
object. This should dispose all GL resources when
all drawing is finished and no more calls will be executing on this OpenGL
context and these resources.public void drawString(String string, int x, int y)
public void drawString(AttributedCharacterIterator iterator, int x, int y)
public void drawString(AttributedCharacterIterator iterator, float x, float y)
public void drawString(String string, float x, float y)
Copyright © 2010-2013. All Rights Reserved.