JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
16 bits per pixel true color
24 bits per pixel true color
8 bits per pixel indexed color
8 bits per pixel true color
Field Summary
Fields
private final int
private final int
private final int
private final int
private final int
private final int
private final int
private final int
private final boolean
Constructor Summary
Constructors
private
ColorDepth (int bitsPerPixel,
int depth,
boolean trueColor,
int redMax,
int blueMax,
int greenMax,
int redShift,
int blueShift,
int greenShift)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
int
int
int
int
int
int
int
int
boolean
Returns the enum constant of this type with the specified name.
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 , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
BPP_8_INDEXED
8 bits per pixel indexed color
BPP_8_TRUE
8 bits per pixel true color
BPP_16_TRUE
16 bits per pixel true color
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
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
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 ()