|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BandType> org.deegree.coverage.raster.data.info.BandType
public enum BandType
The BandType
defines band information of a rasterdata object
Enum Constant Summary | |
---|---|
ALPHA
|
|
BAND_0
|
|
BAND_1
|
|
BAND_2
|
|
BAND_3
|
|
BAND_4
|
|
BAND_5
|
|
BAND_6
|
|
BAND_7
|
|
BAND_8
|
|
BAND_9
|
|
BLUE
|
|
GREEN
|
|
RED
|
|
UNDEFINED
|
Field Summary | |
---|---|
static BandType[] |
RGB
A standard RGB band type array |
static BandType[] |
RGBA
A standard RGBA band type array |
Method Summary | |
---|---|
static BandType[] |
fromBufferedImageType(int type,
int expectedSize,
SampleModel sampleModel)
Convert from BufferedImage -Types to BandType s. |
static BandType |
fromString(String band)
Get Bandtype for the given string. |
String |
getInfo()
|
String |
toString()
|
static BandType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BandType[] |
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 BandType BAND_0
public static final BandType BAND_1
public static final BandType BAND_2
public static final BandType BAND_3
public static final BandType BAND_4
public static final BandType BAND_5
public static final BandType BAND_6
public static final BandType BAND_7
public static final BandType BAND_8
public static final BandType BAND_9
public static final BandType RED
public static final BandType GREEN
public static final BandType BLUE
public static final BandType ALPHA
public static final BandType UNDEFINED
Field Detail |
---|
public static final BandType[] RGB
public static final BandType[] RGBA
Method Detail |
---|
public static BandType[] values()
for (BandType c : BandType.values()) System.out.println(c);
public static BandType 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 final String getInfo()
public static BandType[] fromBufferedImageType(int type, int expectedSize, SampleModel sampleModel)
BufferedImage
-Types to BandType
s. The size of the types are irrelevant.
(INT_ARGB==3BYTE_ARGB)
type
- The DataBuffer
-Type (eg. TYPE_BYTE, etc.)expectedSize
- if the type is unknown an array of expectedSize with BAND_0
[9] will be returned.sampleModel
-
public static BandType fromString(String band)
band
-
null
if the band type was not known.public String toString()
toString
in class Enum<BandType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |