Package jexer

Enum 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
      BITMAP
      Bitmap image.
      BLOCKS
      Converted to solid space (' ') character blocks.
      UNICODE_HALVES
      Converted to Unicode half-block glyphs.
      UNICODE_QUADRANTS
      Converted to Unicode quadrant-block glyphs.
      UNICODE_SEXTANTS
      Converted to Unicode sextant glyphs.
      UNICODE_SIXDOT
      Converted to Unicode 6-dot Braille glyphs on this window's background color.
      UNICODE_SIXDOTSOLID
      Converted 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.DisplayMode valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 name
        java.lang.NullPointerException - if the argument is null