Module com.googlecode.lanterna
Enum TerminalEmulatorDeviceConfiguration.CursorStyle
- java.lang.Object
-
- java.lang.Enum<TerminalEmulatorDeviceConfiguration.CursorStyle>
-
- com.googlecode.lanterna.terminal.swing.TerminalEmulatorDeviceConfiguration.CursorStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TerminalEmulatorDeviceConfiguration.CursorStyle>
- Enclosing class:
- TerminalEmulatorDeviceConfiguration
public static enum TerminalEmulatorDeviceConfiguration.CursorStyle extends java.lang.Enum<TerminalEmulatorDeviceConfiguration.CursorStyle>
Different cursor styles supported by SwingTerminal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIXED_BACKGROUND
The cursor is drawn by using the cursor color as the background color for the character at the cursor positionREVERSED
The cursor is drawn by inverting the front- and background colors of the cursor positionUNDER_BAR
The cursor is rendered as a thick horizontal line at the bottom of the characterVERTICAL_BAR
The cursor is rendered as a left-side aligned vertical line
-
Constructor Summary
Constructors Modifier Constructor Description private
CursorStyle()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TerminalEmulatorDeviceConfiguration.CursorStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TerminalEmulatorDeviceConfiguration.CursorStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REVERSED
public static final TerminalEmulatorDeviceConfiguration.CursorStyle REVERSED
The cursor is drawn by inverting the front- and background colors of the cursor position
-
FIXED_BACKGROUND
public static final TerminalEmulatorDeviceConfiguration.CursorStyle FIXED_BACKGROUND
The cursor is drawn by using the cursor color as the background color for the character at the cursor position
-
UNDER_BAR
public static final TerminalEmulatorDeviceConfiguration.CursorStyle UNDER_BAR
The cursor is rendered as a thick horizontal line at the bottom of the character
-
VERTICAL_BAR
public static final TerminalEmulatorDeviceConfiguration.CursorStyle VERTICAL_BAR
The cursor is rendered as a left-side aligned vertical line
-
-
Method Detail
-
values
public static TerminalEmulatorDeviceConfiguration.CursorStyle[] 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 (TerminalEmulatorDeviceConfiguration.CursorStyle c : TerminalEmulatorDeviceConfiguration.CursorStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TerminalEmulatorDeviceConfiguration.CursorStyle 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
-
-