Class TextFormat

java.lang.Object
host.anzo.commons.graphics.text.TextFormat

public final class TextFormat extends Object
A class which provides formatting flags for use when rendering text.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Indicates that the first line of the text should always be visible.
    static final int
    Indicates that the renderer should not use anti-aliasing when rendering the text.
    static final int
    No additional formatting flags should be used.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isEnabled(int format, int flag)
    Gets whether the target format contains a specific flag.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NONE

      public static final int NONE
      No additional formatting flags should be used.
      See Also:
    • NO_ANTI_ALIASING

      public static final int NO_ANTI_ALIASING
      Indicates that the renderer should not use anti-aliasing when rendering the text.
      See Also:
    • FIRST_LINE_VISIBLE

      public static final int FIRST_LINE_VISIBLE
      Indicates that the first line of the text should always be visible.
      See Also:
  • Method Details

    • isEnabled

      public static boolean isEnabled(int format, int flag)
      Gets whether the target format contains a specific flag.
      Parameters:
      format - The compiled format flags
      flag - The flag to find in the format flags
      Returns:
      true if the format flags contains the specific flag; otherwise, false