Enum ColorDepth

java.lang.Object
java.lang.Enum<ColorDepth>
com.shinyhut.vernacular.client.rendering.ColorDepth
All Implemented Interfaces:
Serializable, Comparable<ColorDepth>, java.lang.constant.Constable

public enum ColorDepth extends Enum<ColorDepth>
  • Enum Constant Details

    • BPP_8_INDEXED

      public static final ColorDepth BPP_8_INDEXED
      8 bits per pixel indexed color
    • BPP_8_TRUE

      public static final ColorDepth BPP_8_TRUE
      8 bits per pixel true color
    • BPP_16_TRUE

      public static final ColorDepth BPP_16_TRUE
      16 bits per pixel true color
    • BPP_24_TRUE

      public static final ColorDepth BPP_24_TRUE
      24 bits per pixel true color
  • Field Details

    • bitsPerPixel

      private final int bitsPerPixel
    • depth

      private final int depth
    • trueColor

      private final boolean trueColor
    • redMax

      private final int redMax
    • blueMax

      private final int blueMax
    • greenMax

      private final int greenMax
    • redShift

      private final int redShift
    • blueShift

      private final int blueShift
    • greenShift

      private final int greenShift
  • Constructor Details

    • ColorDepth

      private ColorDepth(int bitsPerPixel, int depth, boolean trueColor, int redMax, int blueMax, int greenMax, int redShift, int blueShift, int greenShift)
  • Method Details

    • values

      public static ColorDepth[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ColorDepth valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getBitsPerPixel

      public int getBitsPerPixel()
    • getDepth

      public int getDepth()
    • isTrueColor

      public boolean isTrueColor()
    • getRedMax

      public int getRedMax()
    • getBlueMax

      public int getBlueMax()
    • getGreenMax

      public int getGreenMax()
    • getRedShift

      public int getRedShift()
    • getBlueShift

      public int getBlueShift()
    • getGreenShift

      public int getGreenShift()