Java com.badlogic.gdx.graphics.g2d BitmapFontCache fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.g2d BitmapFontCache fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.g2d BitmapFontCache.

The text is from its open source code.

Constructor

Method

voiddraw(Batch spriteBatch)
TextBoundsgetBounds()
Returns the size of the cached string.
BitmapFontgetFont()
float[]getVertices()
floatgetX()
Returns the x position of the cached string, relative to the position when the string was cached.
floatgetY()
Returns the y position of the cached string, relative to the position when the string was cached.
voidsetColor(float r, float g, float b, float a)
Sets the color of subsequently added text.
voidsetColor(Color tint)
Sets the color of subsequently added text.
voidsetColor(float color)
Sets the color of subsequently added text.
TextBoundssetMultiLineText(CharSequence str, float x, float y)
Clears any cached glyphs and adds glyphs for the specified text, which may contain newlines (\n).
voidsetPosition(float x, float y)
Sets the position of the text, relative to the position when the cached text was created.
TextBoundssetText(CharSequence str, float x, float y)
Clears any cached glyphs and adds glyphs for the specified text.
TextBoundssetWrappedText(CharSequence str, float x, float y, float wrapWidth)
Clears any cached glyphs and adds glyphs for the specified text, which may contain newlines (\n) and is automatically wrapped within the specified width.
voidtint(Color tint)
Tints all text currently in the cache.