Package WildMagic.LibGraphics.Rendering
Enum GraphicsImage.Type
- java.lang.Object
-
- java.lang.Enum<GraphicsImage.Type>
-
- WildMagic.LibGraphics.Rendering.GraphicsImage.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GraphicsImage.Type>
- Enclosing class:
- GraphicsImage
public static enum GraphicsImage.Type extends java.lang.Enum<GraphicsImage.Type>
GraphicsImage format mode:
-
-
Field Summary
Fields Modifier and Type Field Description private static int
m_iInitValue
private int
m_iValue
private int
ms_aiBytesPerPixel
private java.lang.String
ms_kName
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(int iBytesPerPixel, java.lang.String kFormatName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
BytesPerPixel()
private int
Init()
java.lang.String
Name()
int
Value()
static GraphicsImage.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GraphicsImage.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IT_BYTE
public static final GraphicsImage.Type IT_BYTE
-
IT_UBYTE
public static final GraphicsImage.Type IT_UBYTE
-
IT_SHORT
public static final GraphicsImage.Type IT_SHORT
-
IT_USHORT
public static final GraphicsImage.Type IT_USHORT
-
IT_INT
public static final GraphicsImage.Type IT_INT
-
IT_UINT
public static final GraphicsImage.Type IT_UINT
-
IT_LONG
public static final GraphicsImage.Type IT_LONG
-
IT_FLOAT
public static final GraphicsImage.Type IT_FLOAT
-
IT_DOUBLE
public static final GraphicsImage.Type IT_DOUBLE
-
IT_QUANTITY
public static final GraphicsImage.Type IT_QUANTITY
-
-
Method Detail
-
values
public static GraphicsImage.Type[] 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 (GraphicsImage.Type c : GraphicsImage.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraphicsImage.Type 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
-
BytesPerPixel
public int BytesPerPixel()
-
Name
public java.lang.String Name()
-
Value
public int Value()
-
Init
private int Init()
-
-