public interface ITextDrawingContext
Modifier and Type | Method and Description |
---|---|
ITextDrawingContext |
begin(IFont font,
int textColor)
Starte the context with specified font and text color
|
ITextDrawingContext |
drawText(float x,
float y,
java.lang.String text)
Draw the text at the specified x, y coordinate
|
void |
end()
Ends the drawing, flushing to render target
|
ITextDrawingContext begin(IFont font, int textColor)
font
- The font to draw text withtextColor
- The text colorITextDrawingContext
instance, to allow fluent APIITextDrawingContext drawText(float x, float y, java.lang.String text)
x
- The x-coordinate in pixelsy
- The y-coordinate in pixelstext
- The text to drawITextDrawingContext
instance, to allow fluent APIvoid end()