Package jexer
Enum TImage.DisplayMode
- java.lang.Object
-
- java.lang.Enum<TImage.DisplayMode>
-
- jexer.TImage.DisplayMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TImage.DisplayMode>
- Enclosing class:
- TImage
public static enum TImage.DisplayMode extends java.lang.Enum<TImage.DisplayMode>
Selections for approximating the image as text cells.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BITMAPBitmap image.BLOCKSConverted to solid space (' ') character blocks.UNICODE_HALVESConverted to Unicode half-block glyphs.UNICODE_QUADRANTSConverted to Unicode quadrant-block glyphs.UNICODE_SEXTANTSConverted to Unicode sextant glyphs.UNICODE_SIXDOTConverted to Unicode 6-dot Braille glyphs on this window's background color.UNICODE_SIXDOTSOLIDConverted to Unicode 6-dot Braille glyphs with foreground/background color.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TImage.DisplayModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TImage.DisplayMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BITMAP
public static final TImage.DisplayMode BITMAP
Bitmap image.
-
BLOCKS
public static final TImage.DisplayMode BLOCKS
Converted to solid space (' ') character blocks.
-
UNICODE_HALVES
public static final TImage.DisplayMode UNICODE_HALVES
Converted to Unicode half-block glyphs.
-
UNICODE_SEXTANTS
public static final TImage.DisplayMode UNICODE_SEXTANTS
Converted to Unicode sextant glyphs.
-
UNICODE_QUADRANTS
public static final TImage.DisplayMode UNICODE_QUADRANTS
Converted to Unicode quadrant-block glyphs.
-
UNICODE_SIXDOT
public static final TImage.DisplayMode UNICODE_SIXDOT
Converted to Unicode 6-dot Braille glyphs on this window's background color.
-
UNICODE_SIXDOTSOLID
public static final TImage.DisplayMode UNICODE_SIXDOTSOLID
Converted to Unicode 6-dot Braille glyphs with foreground/background color.
-
-
Method Detail
-
values
public static TImage.DisplayMode[] 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 (TImage.DisplayMode c : TImage.DisplayMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TImage.DisplayMode 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
-
-