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 Type
    Method
    Description
    Gets the horizontal alignment of the text.
    Gets the text color.
    Gets the font used to render the text.
    Gets the text string.
    Gets the vertical alignment of the text.
    boolean
    Returns whether the text is rendered bold.
    boolean
    Returns whether the text is rendered italic.
    boolean
    Returns whether the text is rendered with strike-through.
    boolean
    Returns whether the text is rendered with an underline.
    boolean
    Returns whether the text is rendered with kerning enabled.
    boolean
    Returns whether the text wraps within the bounds of its map object.
  • Method Details

    • getText

      String getText()
      Gets the text string.
      Returns:
      the text
    • getFont

      Font getFont()
      Gets the font used to render the text.
      Returns:
      the font
    • wrap

      boolean wrap()
      Returns whether the text wraps within the bounds of its map object.
      Returns:
      true if word wrapping is enabled
    • getColor

      Color getColor()
      Gets the text color.
      Returns:
      the color
    • getAlign

      Align getAlign()
      Gets the horizontal alignment of the text.
      Returns:
      the horizontal alignment
    • getValign

      Valign getValign()
      Gets the vertical alignment of the text.
      Returns:
      the vertical alignment
    • isBold

      boolean isBold()
      Returns whether the text is rendered bold.
      Returns:
      true if bold
    • isItalic

      boolean isItalic()
      Returns whether the text is rendered italic.
      Returns:
      true if italic
    • isUnderlined

      boolean isUnderlined()
      Returns whether the text is rendered with an underline.
      Returns:
      true if underlined
    • isStrikeout

      boolean isStrikeout()
      Returns whether the text is rendered with strike-through.
      Returns:
      true if strike-through is applied
    • useKerning

      boolean useKerning()
      Returns whether the text is rendered with kerning enabled.
      Returns:
      true if kerning is applied