|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ImageDataType>
org.jaitools.imageutils.ImageDataType
public enum ImageDataType
Associates DataBuffer data type constants with Number classes.
| Enum Constant Summary | |
|---|---|
BYTE
|
|
DOUBLE
|
|
FLOAT
|
|
INT
|
|
SHORT
|
|
USHORT
|
|
| Method Summary | |
|---|---|
int |
getDataBufferType()
Gets the DataBuffer integer constant for this data type. |
Class<? extends Number> |
getDataClass()
Gets the class associated with this data type. |
static ImageDataType |
getForClass(Class<? extends Number> clazz)
Matches a data class. |
static ImageDataType |
getForDataBufferType(int typeCode)
Matches a DataBuffer type constant. |
String |
toString()
|
static ImageDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ImageDataType[] |
values()
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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ImageDataType BYTE
public static final ImageDataType SHORT
public static final ImageDataType USHORT
public static final ImageDataType INT
public static final ImageDataType FLOAT
public static final ImageDataType DOUBLE
| Method Detail |
|---|
public static ImageDataType[] values()
for (ImageDataType c : ImageDataType.values()) System.out.println(c);
public static ImageDataType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getDataBufferType()
public Class<? extends Number> getDataClass()
public static ImageDataType getForDataBufferType(int typeCode)
typeCode - the constant value to match
IllegalArgumentException - if no match existspublic static ImageDataType getForClass(Class<? extends Number> clazz)
clazz - the data class to match
IllegalArgumentException - if the argument is null or if no match existspublic String toString()
toString in class Enum<ImageDataType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||