Enum ColorDepth
- java.lang.Object
-
- java.lang.Enum<ColorDepth>
-
- com.shinyhut.vernacular.client.rendering.ColorDepth
-
- All Implemented Interfaces:
Serializable,Comparable<ColorDepth>
public enum ColorDepth extends Enum<ColorDepth>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BPP_16_TRUE16 bits per pixel true colorBPP_24_TRUE24 bits per pixel true colorBPP_8_INDEXED8 bits per pixel indexed colorBPP_8_TRUE8 bits per pixel true color
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitsPerPixel()intgetBlueMax()intgetBlueShift()intgetDepth()intgetGreenMax()intgetGreenShift()intgetRedMax()intgetRedShift()booleanisTrueColor()static ColorDepthvalueOf(String name)Returns the enum constant of this type with the specified name.static ColorDepth[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
values
public static ColorDepth[] 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 (ColorDepth c : ColorDepth.values()) System.out.println(c);
- 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 nameNullPointerException- 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()
-
-