public interface Band extends Cloneable, ComplexWeakReferencingObservable, Disposable
Modifier and Type | Interface and Description |
---|---|
static interface |
Band.BandByte
A Band which elements are bytes.
|
static interface |
Band.BandDouble
A Band which elements are doubles.
|
static interface |
Band.BandFloat
A Band which elements are floats.
|
static interface |
Band.BandInt
A Band which elements are integers.
|
static interface |
Band.BandShort
A Band which elements are shorts.
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Band source)
Fills this band with a copy of the source data band.
|
void |
copyFrom(Band source,
int row,
int column)
Fills a sector of this band with a copy of the source band data from a position.
|
java.lang.Object |
createRowBuffer()
Creates an array of corresponding data type.
|
void |
fetchRow(int row,
java.lang.Object rowBuffer)
Fills the rowBuffer Object with the row.
|
void |
fill(java.lang.Object value)
Fills the band with a unique value.
|
java.lang.Object |
get(int row,
int column)
Gets the corresponding value to a row and column of the band
|
java.lang.Double |
getAsDouble(int row,
int column)
Gets the corresponding value to a row and column of the band as a Double.
|
BandInfo |
getBandInfo()
Gets information about the specified band.
|
int |
getColumns()
Gets the number of columns of the band
|
int |
getDataType()
Gets the dataType.
|
NoData |
getNoData()
Gets the NoData value
|
int |
getRows()
Gets the number of rows of the band
|
boolean |
isPaginated() |
boolean |
isReadOnly() |
void |
putRow(int row,
java.lang.Object rowBuffer)
Fills the row with the rowBuffer
|
void |
set(int row,
int column,
java.lang.Object value)
Set the value in the row and column of the band.
|
clone, cloneQuietly, cloneQuietly
beginComplexNotification, disableNotifications, enableNotifications, endComplexNotification
addObserver, deleteObserver, deleteObservers
dispose
int getColumns()
int getRows()
int getDataType()
BufferManager
.
The data type of the band can't be changed after being created.NoData getNoData()
java.lang.Object get(int row, int column)
row
- column
- java.lang.Double getAsDouble(int row, int column)
row
- column
- void set(int row, int column, java.lang.Object value)
row
- column
- value
- void fill(java.lang.Object value)
value
- void copyFrom(Band source) throws BandException
source
- BandException
void copyFrom(Band source, int row, int column) throws BandException
source
- row
- column
- BandException
java.lang.Object createRowBuffer()
void fetchRow(int row, java.lang.Object rowBuffer)
row
- rowBuffer
- void putRow(int row, java.lang.Object rowBuffer)
row
- rowBuffer
- boolean isPaginated()
boolean isReadOnly()
BandInfo getBandInfo()
null
band
- The specified band