public class MemoryBandDouble extends AbstractBand implements Band.BandDouble
Band.BandByte, Band.BandDouble, Band.BandFloat, Band.BandInt, Band.BandShort
logger
Constructor and Description |
---|
MemoryBandDouble(int rows,
int columns) |
MemoryBandDouble(int rows,
int columns,
NoData noData) |
Modifier and Type | Method and Description |
---|---|
double[] |
createRowBuffer()
Creates an array of corresponding data type.
|
protected void |
doCopyFrom(Band source) |
protected void |
doCopyFrom(Band source,
int row,
int column) |
protected void |
doFill(java.lang.Object value) |
protected void |
doPutRow(int row,
java.lang.Object rowBuffer) |
protected void |
doSet(int row,
int column,
java.lang.Object value) |
protected void |
doSetValue(int row,
int column,
double value) |
void |
fetchRow(int row,
java.lang.Object rowBuffer)
Fills the rowBuffer Object with the row.
|
java.lang.Object |
get(int row,
int column)
Gets the corresponding value to a row and column of the band
|
int |
getDataType()
Gets the dataType.
|
double |
getValue(int row,
int column)
Gets the corresponding value to the row and column;
|
void |
setValue(int row,
int column,
double value)
Sets the value in the row and column;
|
clone, copyFrom, copyFrom, dispose, doDispose, fill, finalize, getAsDouble, getBandInfo, getColumns, getNoData, getRows, isPaginated, isReadOnly, nullValueToNoData, putRow, set
addObserver, addObserver, addObservers, beginComplexNotification, clearChanged, countObservers, deleteObserver, deleteObserver, deleteObservers, disableNotifications, enableNotifications, endComplexNotification, hasChanged, inComplex, isEnabledNotifications, notify, notifyObservers, notifyObservers, setChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyFrom, copyFrom, fill, getAsDouble, getBandInfo, getColumns, getNoData, getRows, isPaginated, isReadOnly, putRow, set
clone, cloneQuietly, cloneQuietly
beginComplexNotification, disableNotifications, enableNotifications, endComplexNotification
addObserver, deleteObserver, deleteObservers
dispose
public MemoryBandDouble(int rows, int columns)
rows
- columns
- public MemoryBandDouble(int rows, int columns, NoData noData)
rows
- columns
- noData
- public int getDataType()
Band
BufferManager
.
The data type of the band can't be changed after being created.getDataType
in interface Band
public java.lang.Object get(int row, int column)
Band
protected void doSet(int row, int column, java.lang.Object value)
doSet
in class AbstractBand
protected void doFill(java.lang.Object value)
doFill
in class AbstractBand
protected void doCopyFrom(Band source) throws CopyFromBandException
doCopyFrom
in class AbstractBand
CopyFromBandException
protected void doCopyFrom(Band source, int row, int column) throws CopyFromBandException
doCopyFrom
in class AbstractBand
CopyFromBandException
public double getValue(int row, int column)
Band.BandDouble
getValue
in interface Band.BandDouble
public void setValue(int row, int column, double value)
Band.BandDouble
setValue
in interface Band.BandDouble
protected void doSetValue(int row, int column, double value)
public double[] createRowBuffer()
Band
createRowBuffer
in interface Band
createRowBuffer
in interface Band.BandDouble
public void fetchRow(int row, java.lang.Object rowBuffer)
Band
protected void doPutRow(int row, java.lang.Object rowBuffer)
doPutRow
in class AbstractBand