public class PaginatedBandShort extends AbstractPaginatedBand implements Band.BandShort
Band.BandByte, Band.BandDouble, Band.BandFloat, Band.BandInt, Band.BandShort
data, firstRowOfPage, MAX_PREFERED_SIZE, pageManager, rowsPerPage
Constructor and Description |
---|
PaginatedBandShort(int rows,
int columns,
NoData noData,
BandPageManager pageManager) |
Modifier and Type | Method and Description |
---|---|
short[] |
createRowBuffer()
Creates an array of corresponding data type.
|
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,
short 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
|
protected int |
getDataSize() |
int |
getDataType()
Gets the dataType.
|
short |
getValue(int row,
int column)
Gets the corresponding value to the row and column;
|
protected void |
loadPage(int row) |
void |
setValue(int row,
int column,
short value)
Sets the value in the row and column;
|
calculateBufferSizeToAllocate, copyFrom, doCopyFrom, doCopyFrom, doDispose, finalize, getBandInfo, isPaginated, isReadOnly, saveCurrentPage
clone, copyFrom, dispose, fill, getAsDouble, getColumns, getNoData, getRows, 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 PaginatedBandShort(int rows, int columns, NoData noData, BandPageManager pageManager)
rows
- columns
- noData
- rowsPerPage
- pageManager
- public int getDataType()
Band
BufferManager
.
The data type of the band can't be changed after being created.getDataType
in interface Band
protected int getDataSize()
getDataSize
in class AbstractPaginatedBand
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
public short getValue(int row, int column)
Band.BandShort
getValue
in interface Band.BandShort
public void setValue(int row, int column, short value)
Band.BandShort
setValue
in interface Band.BandShort
protected void doSetValue(int row, int column, short value)
public short[] createRowBuffer()
Band
createRowBuffer
in interface Band
createRowBuffer
in interface Band.BandShort
public void fetchRow(int row, java.lang.Object rowBuffer)
Band
protected void doPutRow(int row, java.lang.Object rowBuffer)
doPutRow
in class AbstractBand
protected void loadPage(int row)
loadPage
in class AbstractPaginatedBand