public final class TextStyle extends RenderStyle<TextStyle>
| Modifier and Type | Class and Description |
|---|---|
static class |
TextStyle.TextBuilder<T extends TextStyle.TextBuilder<T>> |
RenderStyle.Callback, RenderStyle.StyleBuilder<T extends RenderStyle.StyleBuilder<T>>| Modifier and Type | Field and Description |
|---|---|
float |
areaSize |
Bitmap |
bitmap |
boolean |
caption |
float |
dy |
float |
fontDescent |
Paint.FontFamily |
fontFamily |
float |
fontHeight |
float |
fontSize |
Paint.FontStyle |
fontStyle |
Paint |
paint |
int |
priority |
Paint |
stroke |
java.lang.String |
style |
int |
symbolHeight |
int |
symbolPercent |
int |
symbolWidth |
java.lang.String |
textKey |
TextureRegion |
texture |
cat| Modifier and Type | Method and Description |
|---|---|
static TextStyle.TextBuilder<?> |
builder() |
TextStyle |
current() |
void |
dispose()
Destroys this RenderInstruction and cleans up all its internal resources.
|
void |
renderNode(RenderStyle.Callback cb) |
void |
renderWay(RenderStyle.Callback cb) |
void |
scaleTextSize(float scaleFactor)
Scales the text size of this RenderInstruction by the given factor.
|
self, set, setCat, unsetOverride, updatepublic final java.lang.String style
public final Paint.FontFamily fontFamily
public final Paint.FontStyle fontStyle
public float fontSize
public final Paint paint
public final Paint stroke
public final java.lang.String textKey
public final boolean caption
public final float dy
public final int priority
public final float areaSize
public float fontHeight
public float fontDescent
public final Bitmap bitmap
public final TextureRegion texture
public final int symbolWidth
public final int symbolHeight
public final int symbolPercent
public void dispose()
RenderStyledispose in class RenderStyle<TextStyle>public void renderNode(RenderStyle.Callback cb)
renderNode in class RenderStyle<TextStyle>cb - a reference to the receiver of all render callbacks.public void renderWay(RenderStyle.Callback cb)
renderWay in class RenderStyle<TextStyle>cb - a reference to the receiver of all render callbacks.public TextStyle current()
current in class RenderStyle<TextStyle>public void scaleTextSize(float scaleFactor)
RenderStylescaleTextSize in class RenderStyle<TextStyle>scaleFactor - the factor by which the text size should be scaled.public static TextStyle.TextBuilder<?> builder()