|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.jai.EnumeratedParameter org.geotools.cv.SampleDimensionType
SampleDimensionType
in the
org.opengis.coverage
package.
Contains information for an individual sample dimension of coverage. This interface is applicable to any coverage type. For grid coverages, the sample dimension refers to an individual band.
CV_SampleDimensionType
,
Serialized FormField Summary | |
static SampleDimensionType |
BIT
Deprecated. 1 bit integers. |
static SampleDimensionType |
BYTE
Deprecated. Signed 8 bits integers. |
static SampleDimensionType |
DOUBLE
Deprecated. Double precision floating point numbers. |
static SampleDimensionType |
DOUBLET
Deprecated. 2 bits integers. |
static SampleDimensionType |
FLOAT
Deprecated. Simple precision floating point numbers. |
static SampleDimensionType |
INT
Deprecated. Signed 32 bits integers. |
static SampleDimensionType |
NIBBLE
Deprecated. 4 bits integers (also called "quartet" or "half-byte"). |
static SampleDimensionType |
SHORT
Deprecated. Signed 16 bits integers. |
static SampleDimensionType |
UBYTE
Deprecated. Unsigned 8 bits integers. |
static SampleDimensionType |
UINT
Deprecated. Unsigned 32 bits integers. |
static SampleDimensionType |
USHORT
Deprecated. Unsigned 16 bits integers. |
Method Summary | |
int |
getDataBufferType()
Deprecated. Returns the DataBuffer type. |
static SampleDimensionType |
getEnum(int value)
Deprecated. Return the enum for the specified value. |
static SampleDimensionType |
getEnum(javax.media.jai.util.Range range)
Deprecated. Returns the enum for the smallest type capable to hold the specified range of values. |
static SampleDimensionType |
getEnum(org.opengis.coverage.SampleDimensionType value)
Deprecated. Return the enum for the specified value. |
static SampleDimensionType |
getEnum(java.awt.image.SampleModel model,
int band)
Deprecated. Return the enum for the specified sample model and band number. |
java.lang.String |
getName(java.util.Locale locale)
Deprecated. Returns this enum's name in the specified locale. |
int |
getSize()
Deprecated. Returns the size in bits. |
boolean |
isFloatingPoint()
Deprecated. Returns true for floating-point data type.
|
boolean |
isSigned()
Deprecated. Returns true for signed sample type.
|
Methods inherited from class javax.media.jai.EnumeratedParameter |
equals, getName, getValue, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final SampleDimensionType BIT
CV_SampleDimensionType.CV_1BIT
,
DataBuffer.TYPE_BYTE
public static final SampleDimensionType DOUBLET
CV_SampleDimensionType.CV_2BIT
,
DataBuffer.TYPE_BYTE
public static final SampleDimensionType NIBBLE
CV_SampleDimensionType.CV_4BIT
,
DataBuffer.TYPE_BYTE
public static final SampleDimensionType UBYTE
CV_SampleDimensionType.CV_8BIT_U
,
DataBuffer.TYPE_BYTE
public static final SampleDimensionType BYTE
DataBuffer.TYPE_BYTE
.
CV_SampleDimensionType.CV_8BIT_S
,
DataBuffer.TYPE_BYTE
public static final SampleDimensionType USHORT
DataBuffer.TYPE_USHORT
.
CV_SampleDimensionType.CV_16BIT_U
,
DataBuffer.TYPE_USHORT
public static final SampleDimensionType SHORT
DataBuffer.TYPE_SHORT
.
CV_SampleDimensionType.CV_16BIT_S
,
DataBuffer.TYPE_SHORT
public static final SampleDimensionType UINT
CV_SampleDimensionType.CV_32BIT_U
,
DataBuffer.TYPE_INT
public static final SampleDimensionType INT
DataBuffer.TYPE_INT
.
CV_SampleDimensionType.CV_32BIT_S
,
DataBuffer.TYPE_INT
public static final SampleDimensionType FLOAT
DataBuffer.TYPE_FLOAT
.
CV_SampleDimensionType.CV_32BIT_REAL
,
DataBuffer.TYPE_FLOAT
public static final SampleDimensionType DOUBLE
DataBuffer.TYPE_DOUBLE
.
CV_SampleDimensionType.CV_64BIT_REAL
,
DataBuffer.TYPE_DOUBLE
Method Detail |
public static SampleDimensionType getEnum(int value) throws java.util.NoSuchElementException
CV_SampleDimensionType
.
value
- The enum value.
java.util.NoSuchElementException
- if there is no enum for the specified value.public static SampleDimensionType getEnum(org.opengis.coverage.SampleDimensionType value) throws java.util.NoSuchElementException
SampleDimensionType
.
value
- The enum value.
java.util.NoSuchElementException
- if there is no enum for the specified value.public static SampleDimensionType getEnum(javax.media.jai.util.Range range)
range
- The range of values.
public static SampleDimensionType getEnum(java.awt.image.SampleModel model, int band) throws java.lang.IllegalArgumentException
null
.
model
- The sample model.band
- The band to query.
java.lang.IllegalArgumentException
- if the band number is not in the valid range.public java.lang.String getName(java.util.Locale locale)
SHORT
is "16 bits unsigned integer" in English
and "Entier non-sign? sur 16 bits" in French.
locale
- The locale, or null
for the default locale.
public int getDataBufferType()
DataBuffer
type. This is one of the following constants:
DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
,
DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_INT
,
DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
.
public int getSize()
DataBuffer.getDataTypeSize(int)
, which have values ranging
from 8 to 64.
public boolean isSigned()
true
for signed sample type.
true
is returned for BYTE
, SHORT
,
INT
, FLOAT
and DOUBLE
.
public boolean isFloatingPoint()
true
for floating-point data type.
true
is returned for FLOAT
and DOUBLE
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |