public abstract class AbstractBand extends BaseWeakReferencingObservable implements Band
Band.BandByte, Band.BandDouble, Band.BandFloat, Band.BandInt, Band.BandShort| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
logger |
| Constructor and Description |
|---|
AbstractBand() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
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.
|
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
protected abstract void |
doCopyFrom(Band source) |
protected abstract void |
doCopyFrom(Band source,
int row,
int column) |
void |
doDispose()
Internal implementation for the
dispose() method. |
protected abstract void |
doFill(java.lang.Object value) |
protected abstract void |
doPutRow(int row,
java.lang.Object rowBuffer) |
protected abstract void |
doSet(int row,
int column,
java.lang.Object value) |
void |
fill(java.lang.Object value)
Fills the band with a unique value.
|
protected void |
finalize() |
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
|
NoData |
getNoData()
Gets the NoData value
|
int |
getRows()
Gets the number of rows of the band
|
boolean |
isPaginated() |
boolean |
isReadOnly() |
protected java.lang.Object |
nullValueToNoData(java.lang.Object value) |
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.
|
addObserver, addObserver, addObservers, beginComplexNotification, clearChanged, countObservers, deleteObserver, deleteObserver, deleteObservers, disableNotifications, enableNotifications, endComplexNotification, hasChanged, inComplex, isEnabledNotifications, notify, notifyObservers, notifyObservers, setChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRowBuffer, fetchRow, get, getDataTypecloneQuietly, cloneQuietlybeginComplexNotification, disableNotifications, enableNotifications, endComplexNotificationaddObserver, deleteObserver, deleteObserverspublic java.lang.Double getAsDouble(int row,
int column)
BandgetAsDouble in interface Bandpublic int getColumns()
BandgetColumns in interface Bandpublic int getRows()
Bandpublic BandInfo getBandInfo()
BandnullgetBandInfo in interface Bandpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class BaseWeakReferencingObservablejava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.public boolean isReadOnly()
isReadOnly in interface Bandpublic boolean isPaginated()
isPaginated in interface Bandpublic void set(int row,
int column,
java.lang.Object value)
Bandprotected abstract void doSet(int row,
int column,
java.lang.Object value)
public void fill(java.lang.Object value)
Bandprotected abstract void doFill(java.lang.Object value)
protected java.lang.Object nullValueToNoData(java.lang.Object value)
value - NoData valuepublic void copyFrom(Band source) throws BandException
BandcopyFrom in interface BandBandExceptionprotected abstract void doCopyFrom(Band source) throws CopyFromBandException
CopyFromBandExceptionpublic void copyFrom(Band source, int row, int column) throws BandException
BandcopyFrom in interface BandBandExceptionprotected abstract void doCopyFrom(Band source, int row, int column) throws CopyFromBandException
CopyFromBandExceptionpublic void putRow(int row,
java.lang.Object rowBuffer)
Bandprotected abstract void doPutRow(int row,
java.lang.Object rowBuffer)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic final void dispose()
DisposableNOTE:After calling this method, the object may not be usable anymore.
dispose in interface Disposablepublic void doDispose()
throws BaseException
dispose() method.BaseExceptiondispose()