Class TextStyle


public class TextStyle extends LabelStyle
A style for text labels. Contains attributes for configuring how the text label is drawn on the screen.
  • Method Details

    • getFontColor

      public Color getFontColor()
      Returns the font's color.
      Returns:
      The color of the font.
    • getFontName

      public String getFontName()
      Returns the font's name.
      Returns:
      The platform dependent name of the font.
    • getTextField

      public String getTextField()
      Returns the text field variable to use.
      Returns:
      The text field variable.
    • getFontSize

      public float getFontSize()
      Returns the font's size.
      Returns:
      The size of the font in points.
    • isBreakLines

      public boolean isBreakLines()
      Returns the state of the 'break lines' flag.
      Returns:
      The state of the 'break lines' flag.
    • getTextMargins

      public TextMargins getTextMargins()
      Returns the margins for the text.
      Returns:
      The margins for the text.
    • getStrokeColor

      public Color getStrokeColor()
      Returns the color of the stroke.
      Returns:
      The color of the stroke around the text.
    • getStrokeWidth

      public float getStrokeWidth()
      Returns the width of the stroke.
      Returns:
      The width of the stroke around the text.
    • getBorderColor

      public Color getBorderColor()
      Returns the color of the border.
      Returns:
      The color of the border around the text.
    • getBorderWidth

      public float getBorderWidth()
      Returns the width of the border.
      Returns:
      The width of the border around the text.
    • getBackgroundColor

      public Color getBackgroundColor()
      Returns the background color of the text.
      Returns:
      The background color of the text.