Package host.anzo.commons.graphics.text
Class TextFormat
java.lang.Object
host.anzo.commons.graphics.text.TextFormat
A class which provides formatting flags for use when rendering text.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that the first line of the text should always be visible.static final intIndicates that the renderer should not use anti-aliasing when rendering the text.static final intNo additional formatting flags should be used. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEnabled(int format, int flag) Gets whether the target format contains a specific flag.
-
Field Details
-
NONE
public static final int NONENo additional formatting flags should be used.- See Also:
-
NO_ANTI_ALIASING
public static final int NO_ANTI_ALIASINGIndicates that the renderer should not use anti-aliasing when rendering the text.- See Also:
-
FIRST_LINE_VISIBLE
public static final int FIRST_LINE_VISIBLEIndicates 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 flagsflag- The flag to find in the format flags- Returns:
- true if the format flags contains the specific flag; otherwise, false
-