Interface IMapObjectText
- All Known Implementing Classes:
Text
public interface IMapObjectText
Represents the text content and rendering attributes of a Tiled text map object.
-
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Gets the horizontal alignment of the text.getColor()Gets the text color.getFont()Gets the font used to render the text.getText()Gets the text string.Gets the vertical alignment of the text.booleanisBold()Returns whether the text is rendered bold.booleanisItalic()Returns whether the text is rendered italic.booleanReturns whether the text is rendered with strike-through.booleanReturns whether the text is rendered with an underline.booleanReturns whether the text is rendered with kerning enabled.booleanwrap()Returns whether the text wraps within the bounds of its map object.
-
Method Details
-
getText
-
getFont
-
wrap
boolean wrap()Returns whether the text wraps within the bounds of its map object.- Returns:
trueif word wrapping is enabled
-
getColor
-
getAlign
-
getValign
-
isBold
boolean isBold()Returns whether the text is rendered bold.- Returns:
trueif bold
-
isItalic
boolean isItalic()Returns whether the text is rendered italic.- Returns:
trueif italic
-
isUnderlined
boolean isUnderlined()Returns whether the text is rendered with an underline.- Returns:
trueif underlined
-
isStrikeout
boolean isStrikeout()Returns whether the text is rendered with strike-through.- Returns:
trueif strike-through is applied
-
useKerning
boolean useKerning()Returns whether the text is rendered with kerning enabled.- Returns:
trueif kerning is applied
-