Class Text

All Implemented Interfaces:
IMapObjectText

public class Text extends Object implements IMapObjectText
  • Constructor Details

    • Text

      public Text()
    • Text

      public Text(Text original)
  • Method Details

    • getText

      public String getText()
      Description copied from interface: IMapObjectText
      Gets the text string.
      Specified by:
      getText in interface IMapObjectText
      Returns:
      the text
    • getFont

      public Font getFont()
      Description copied from interface: IMapObjectText
      Gets the font used to render the text.
      Specified by:
      getFont in interface IMapObjectText
      Returns:
      the font
    • getFontName

      public String getFontName()
    • getPixelSize

      public int getPixelSize()
    • wrap

      public boolean wrap()
      Description copied from interface: IMapObjectText
      Returns whether the text wraps within the bounds of its map object.
      Specified by:
      wrap in interface IMapObjectText
      Returns:
      true if word wrapping is enabled
    • getColor

      public Color getColor()
      Description copied from interface: IMapObjectText
      Gets the text color.
      Specified by:
      getColor in interface IMapObjectText
      Returns:
      the color
    • isBold

      public boolean isBold()
      Description copied from interface: IMapObjectText
      Returns whether the text is rendered bold.
      Specified by:
      isBold in interface IMapObjectText
      Returns:
      true if bold
    • isItalic

      public boolean isItalic()
      Description copied from interface: IMapObjectText
      Returns whether the text is rendered italic.
      Specified by:
      isItalic in interface IMapObjectText
      Returns:
      true if italic
    • isUnderlined

      public boolean isUnderlined()
      Description copied from interface: IMapObjectText
      Returns whether the text is rendered with an underline.
      Specified by:
      isUnderlined in interface IMapObjectText
      Returns:
      true if underlined
    • isStrikeout

      public boolean isStrikeout()
      Description copied from interface: IMapObjectText
      Returns whether the text is rendered with strike-through.
      Specified by:
      isStrikeout in interface IMapObjectText
      Returns:
      true if strike-through is applied
    • useKerning

      public boolean useKerning()
      Description copied from interface: IMapObjectText
      Returns whether the text is rendered with kerning enabled.
      Specified by:
      useKerning in interface IMapObjectText
      Returns:
      true if kerning is applied
    • getAlign

      public Align getAlign()
      Description copied from interface: IMapObjectText
      Gets the horizontal alignment of the text.
      Specified by:
      getAlign in interface IMapObjectText
      Returns:
      the horizontal alignment
    • getValign

      public Valign getValign()
      Description copied from interface: IMapObjectText
      Gets the vertical alignment of the text.
      Specified by:
      getValign in interface IMapObjectText
      Returns:
      the vertical alignment