Module com.googlecode.lanterna
Enum AWTTerminalFontConfiguration.BoldMode
- java.lang.Object
-
- java.lang.Enum<AWTTerminalFontConfiguration.BoldMode>
-
- com.googlecode.lanterna.terminal.swing.AWTTerminalFontConfiguration.BoldMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AWTTerminalFontConfiguration.BoldMode>
- Enclosing class:
- AWTTerminalFontConfiguration
public static enum AWTTerminalFontConfiguration.BoldMode extends java.lang.Enum<AWTTerminalFontConfiguration.BoldMode>
Controls how the SGR bold will take effect when enabled on a character. Mainly this is controlling if the character should be rendered with a bold font or not. The reason for this is that some characters, notably the lines and double-lines in defined in Symbol, usually doesn't look very good with bold font when you try to construct a GUI.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVERYTHING
All characters with SGR Bold enabled will be rendered using a bold fontEVERYTHING_BUT_SYMBOLS
All characters with SGR Bold enabled, except for the characters defined as constants in Symbols class, will be rendered using a bold fontNOTHING
Bold font will not be used for characters with SGR bold enabled
-
Constructor Summary
Constructors Modifier Constructor Description private
BoldMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AWTTerminalFontConfiguration.BoldMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AWTTerminalFontConfiguration.BoldMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVERYTHING
public static final AWTTerminalFontConfiguration.BoldMode EVERYTHING
All characters with SGR Bold enabled will be rendered using a bold font
-
EVERYTHING_BUT_SYMBOLS
public static final AWTTerminalFontConfiguration.BoldMode EVERYTHING_BUT_SYMBOLS
All characters with SGR Bold enabled, except for the characters defined as constants in Symbols class, will be rendered using a bold font
-
NOTHING
public static final AWTTerminalFontConfiguration.BoldMode NOTHING
Bold font will not be used for characters with SGR bold enabled
-
-
Method Detail
-
values
public static AWTTerminalFontConfiguration.BoldMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AWTTerminalFontConfiguration.BoldMode c : AWTTerminalFontConfiguration.BoldMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AWTTerminalFontConfiguration.BoldMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-