Package org.oscim.theme.styles
Class TextStyle
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTextStyle.TextBuilder<T extends TextStyle.TextBuilder<T>>Nested classes/interfaces inherited from class org.oscim.theme.styles.RenderStyle
RenderStyle.Callback, RenderStyle.StyleBuilder<T extends RenderStyle.StyleBuilder<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatfinal Paintfinal Bitmapfinal booleanfinal floatfloatfinal Paint.FontFamilyfloatfloatfinal Paint.FontStylefinal Paintfinal intfinal Paintfinal Stringfinal intfinal intfinal intfinal Stringfinal TextureRegionFields inherited from class org.oscim.theme.styles.RenderStyle
cat -
Method Summary
Modifier and TypeMethodDescriptionstatic TextStyle.TextBuilder<?>builder()current()voiddispose()Destroys this RenderInstruction and cleans up all its internal resources.voidvoidvoidscaleTextSize(float scaleFactor) Scales the text size of this RenderInstruction by the given factor.Methods inherited from class org.oscim.theme.styles.RenderStyle
self, set, setCat, unsetOverride, update
-
Field Details
-
style
-
fontFamily
-
fontStyle
-
fontSize
public float fontSize -
paint
-
stroke
-
textKey
-
caption
public final boolean caption -
dy
public final float dy -
priority
public final int priority -
areaSize
public final float areaSize -
fontHeight
public float fontHeight -
fontDescent
public float fontDescent -
bitmap
-
texture
-
symbolWidth
public final int symbolWidth -
symbolHeight
public final int symbolHeight -
symbolPercent
public final int symbolPercent -
bgFill
-
-
Method Details
-
dispose
public void dispose()Description copied from class:RenderStyleDestroys this RenderInstruction and cleans up all its internal resources.- Overrides:
disposein classRenderStyle<TextStyle>
-
renderNode
- Overrides:
renderNodein classRenderStyle<TextStyle>- Parameters:
cb- a reference to the receiver of all render callbacks.
-
renderWay
- Overrides:
renderWayin classRenderStyle<TextStyle>- Parameters:
cb- a reference to the receiver of all render callbacks.
-
current
- Specified by:
currentin classRenderStyle<TextStyle>
-
scaleTextSize
public void scaleTextSize(float scaleFactor) Description copied from class:RenderStyleScales the text size of this RenderInstruction by the given factor.- Overrides:
scaleTextSizein classRenderStyle<TextStyle>- Parameters:
scaleFactor- the factor by which the text size should be scaled.
-
builder
-