| Constructor and Description |
|---|
DefaultNoData()
Constructor
|
DefaultNoData(java.lang.Number noData,
java.lang.Number nativeNoData,
java.lang.String fileName)
Constructor.
|
DefaultNoData(java.lang.Number noData,
java.lang.Number nativeNoData,
java.lang.String fileName,
int bandCount)
Constructor
|
DefaultNoData(java.lang.String fileName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
boolean |
compare(NoData noData)
Compares two NoData objects an returns true if contains the same values
|
void |
delete()
Deletes the nodata value.
|
int |
getBandCount()
Gets the number of bands
|
int |
getDataType()
Gets the NoData data type
|
java.lang.Number |
getNativeValue()
The native is the original value
saved in the head of the file or its metadata.
|
java.lang.Number |
getValue()
Gets a unique value for nodata.
|
java.lang.Number |
getValueByBand(int nBand)
Gets the nodata value by band
|
boolean |
isDefined()
Returns true if getValue is defined and false if is null
|
boolean |
isNoDataTransparent()
Flag to renderize nodata values as transparent
|
void |
load()
Loads this class from the rmf.
|
void |
restore()
Restores native value.
|
void |
save()
NoData value persistence.
|
void |
setBandCount(int bandCount)
Sets the number of bands
|
void |
setDataType(int datatype)
Sets the datatype
|
void |
setFileName(java.lang.String fileName)
Sets the file name
|
void |
setNativeValue(java.lang.Number nativeNoDataValue)
The native is the original value
saved in the head of the file or its metadata.
|
void |
setNoDataTransparent(boolean noDataAsTransparent)
Flag to renderize nodata values as transparent
|
void |
setValue(java.lang.Number noData)
Sets a unique value for nodata.
|
void |
setValueByBand(java.lang.Number noDataValue,
int nBand)
Assigns one value in a band
|
public DefaultNoData()
public DefaultNoData(java.lang.String fileName)
fileName - Name of file owner of this nodata value. This string is useful to
save and load throw the rmf.public DefaultNoData(java.lang.Number noData,
java.lang.Number nativeNoData,
java.lang.String fileName)
noData - value to assign to all bandsnativeNoData - The native is the original value
saved in the head of the file or its metadata.fileName - Name of file owner of this nodata value. This string is useful to
save and load throw the rmf.public DefaultNoData(java.lang.Number noData,
java.lang.Number nativeNoData,
java.lang.String fileName,
int bandCount)
noData - value to assign to all bandsnativeNoData - The native is the original value
saved in the head of the file or its metadata.fileName - Name of file owner of this nodata value. This string is useful to
save the rmf filebandCount - Number of bands of the filepublic java.lang.Number getValue()
NoDatapublic boolean isDefined()
NoDatapublic void setValue(java.lang.Number noData)
NoDatapublic java.lang.Number getNativeValue()
NoDatagetNativeValue in interface NoDatapublic void setNativeValue(java.lang.Number nativeNoDataValue)
NoDatasetNativeValue in interface NoDatapublic void delete()
NoDatapublic void restore()
NoDatapublic void save()
NoDatapublic void load()
NoDatapublic void setFileName(java.lang.String fileName)
NoDatasetFileName in interface NoDatapublic boolean isNoDataTransparent()
NoDataisNoDataTransparent in interface NoDatapublic void setNoDataTransparent(boolean noDataAsTransparent)
NoDatasetNoDataTransparent in interface NoDatapublic int getDataType()
NoDatagetDataType in interface NoDatapublic void setDataType(int datatype)
NoDatasetDataType in interface NoDatapublic boolean compare(NoData noData)
NoDatapublic java.lang.Object clone()
NoDatapublic java.lang.Number getValueByBand(int nBand)
NoDatagetValueByBand in interface NoDatapublic void setValueByBand(java.lang.Number noDataValue,
int nBand)
NoDatasetValueByBand in interface NoDatapublic int getBandCount()
NoDatagetBandCount in interface NoDatapublic void setBandCount(int bandCount)
NoDatasetBandCount in interface NoData