Package com.drew.metadata.bmp
Enum BmpHeaderDirectory.BitmapType
- java.lang.Object
-
- java.lang.Enum<BmpHeaderDirectory.BitmapType>
-
- com.drew.metadata.bmp.BmpHeaderDirectory.BitmapType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BmpHeaderDirectory.BitmapType>
- Enclosing class:
- BmpHeaderDirectory
public static enum BmpHeaderDirectory.BitmapType extends java.lang.Enum<BmpHeaderDirectory.BitmapType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BITMAP"BM" - Windows or OS/2 bitmapOS2_BITMAP_ARRAY"BA" - OS/2 Bitmap array (multiple bitmaps)OS2_COLOR_ICON"CI" - OS/2 Color iconOS2_COLOR_POINTER"CP" - OS/2 Color pointerOS2_ICON"IC" - OS/2 IconOS2_POINTER"PT" - OS/2 Pointer
-
Field Summary
Fields Modifier and Type Field Description private intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateBitmapType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()java.lang.StringtoString()static BmpHeaderDirectory.BitmapTypetypeOf(int value)static BmpHeaderDirectory.BitmapTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BmpHeaderDirectory.BitmapType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BITMAP
public static final BmpHeaderDirectory.BitmapType BITMAP
"BM" - Windows or OS/2 bitmap
-
OS2_BITMAP_ARRAY
public static final BmpHeaderDirectory.BitmapType OS2_BITMAP_ARRAY
"BA" - OS/2 Bitmap array (multiple bitmaps)
-
OS2_ICON
public static final BmpHeaderDirectory.BitmapType OS2_ICON
"IC" - OS/2 Icon
-
OS2_COLOR_ICON
public static final BmpHeaderDirectory.BitmapType OS2_COLOR_ICON
"CI" - OS/2 Color icon
-
OS2_COLOR_POINTER
public static final BmpHeaderDirectory.BitmapType OS2_COLOR_POINTER
"CP" - OS/2 Color pointer
-
OS2_POINTER
public static final BmpHeaderDirectory.BitmapType OS2_POINTER
"PT" - OS/2 Pointer
-
-
Method Detail
-
values
public static BmpHeaderDirectory.BitmapType[] 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 (BmpHeaderDirectory.BitmapType c : BmpHeaderDirectory.BitmapType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BmpHeaderDirectory.BitmapType 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
-
getValue
public int getValue()
-
typeOf
public static BmpHeaderDirectory.BitmapType typeOf(int value)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<BmpHeaderDirectory.BitmapType>
-
-