public enum ImageDataType extends Enum<ImageDataType>
| Enum Constant and Description |
|---|
BYTE |
DOUBLE |
FLOAT |
INT |
SHORT |
USHORT |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 nameNullPointerException - if the argument is nullpublic int getDataBufferType()
public Class<? extends Number> getDataClass()
public static ImageDataType getForDataBufferType(int typeCode)
typeCode - the constant value to matchIllegalArgumentException - if no match existspublic static ImageDataType getForClass(Class<? extends Number> clazz)
clazz - the data class to matchIllegalArgumentException - if the argument is null or if no match existspublic String toString()
toString in class Enum<ImageDataType>Copyright © 2009–2020. All rights reserved.