public abstract class AbstractPaginatedBand extends AbstractBand implements Band
Band.BandByte, Band.BandDouble, Band.BandFloat, Band.BandInt, Band.BandShort
Modifier and Type | Field and Description |
---|---|
protected java.nio.Buffer |
data |
protected int |
firstRowOfPage |
protected static int |
MAX_PREFERED_SIZE |
protected BandPageManager |
pageManager |
protected int |
rowsPerPage |
Constructor and Description |
---|
AbstractPaginatedBand(int rows,
int columns,
NoData noData,
BandPageManager pageManager) |
Modifier and Type | Method and Description |
---|---|
protected int |
calculateBufferSizeToAllocate(int rows,
int columns)
Calculate buffer size than must be allocated.
|
void |
copyFrom(Band source)
Fills this band with a copy of the source data band.
|
protected void |
doCopyFrom(Band source) |
protected void |
doCopyFrom(Band source,
int row,
int column) |
void |
doDispose()
Internal implementation for the
AbstractBand.dispose() method. |
protected void |
finalize() |
BandInfo |
getBandInfo()
Gets information about the specified band.
|
protected abstract int |
getDataSize() |
boolean |
isPaginated() |
boolean |
isReadOnly() |
protected void |
loadPage(int row) |
protected void |
saveCurrentPage() |
clone, copyFrom, dispose, doFill, doPutRow, doSet, 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, createRowBuffer, fetchRow, fill, get, getAsDouble, getColumns, getDataType, getNoData, getRows, putRow, set
clone, cloneQuietly, cloneQuietly
beginComplexNotification, disableNotifications, enableNotifications, endComplexNotification
addObserver, deleteObserver, deleteObservers
dispose
protected java.nio.Buffer data
protected int firstRowOfPage
protected int rowsPerPage
protected BandPageManager pageManager
protected static final int MAX_PREFERED_SIZE
public AbstractPaginatedBand(int rows, int columns, NoData noData, BandPageManager pageManager)
rows
- columns
- noData
- pageManager
- public void copyFrom(Band source) throws CopyFromBandException
Band
copyFrom
in interface Band
copyFrom
in class AbstractBand
CopyFromBandException
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
protected void loadPage(int row)
protected void saveCurrentPage()
protected abstract int getDataSize()
public boolean isReadOnly()
isReadOnly
in interface Band
isReadOnly
in class AbstractBand
public boolean isPaginated()
isPaginated
in interface Band
isPaginated
in class AbstractBand
public BandInfo getBandInfo()
Band
null
getBandInfo
in interface Band
getBandInfo
in class AbstractBand
protected int calculateBufferSizeToAllocate(int rows, int columns)
rows
- columns
- public void doDispose() throws BaseException
AbstractBand
AbstractBand.dispose()
method.doDispose
in class AbstractBand
BaseException
AbstractBand.dispose()
protected void finalize() throws java.lang.Throwable
finalize
in class AbstractBand
java.lang.Throwable