Package tgaimageplugin
Enum TGAHeader.ImageType
- java.lang.Object
-
- java.lang.Enum<TGAHeader.ImageType>
-
- tgaimageplugin.TGAHeader.ImageType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TGAHeader.ImageType>
- Enclosing class:
- TGAHeader
public static enum TGAHeader.ImageType extends java.lang.Enum<TGAHeader.ImageType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_IMAGE_DATA
RUNLENGTH_BLACK_AND_WHITE
RUNLENGTH_COLOR_MAPPED
RUNLENGTH_TRUE_COLOR
UNCOMPRESSED_BLACK_AND_WHITE
UNCOMPRESSED_COLOR_MAPPED
UNCOMPRESSED_TRUE_COLOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
static TGAHeader.ImageType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TGAHeader.ImageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_IMAGE_DATA
public static final TGAHeader.ImageType NO_IMAGE_DATA
-
UNCOMPRESSED_COLOR_MAPPED
public static final TGAHeader.ImageType UNCOMPRESSED_COLOR_MAPPED
-
UNCOMPRESSED_TRUE_COLOR
public static final TGAHeader.ImageType UNCOMPRESSED_TRUE_COLOR
-
UNCOMPRESSED_BLACK_AND_WHITE
public static final TGAHeader.ImageType UNCOMPRESSED_BLACK_AND_WHITE
-
RUNLENGTH_COLOR_MAPPED
public static final TGAHeader.ImageType RUNLENGTH_COLOR_MAPPED
-
RUNLENGTH_TRUE_COLOR
public static final TGAHeader.ImageType RUNLENGTH_TRUE_COLOR
-
RUNLENGTH_BLACK_AND_WHITE
public static final TGAHeader.ImageType RUNLENGTH_BLACK_AND_WHITE
-
-
Method Detail
-
values
public static TGAHeader.ImageType[] 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 (TGAHeader.ImageType c : TGAHeader.ImageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TGAHeader.ImageType 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
-
code
public int code()
-
-