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, setChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRowBuffer, fetchRow, get, getDataType
cloneQuietly, cloneQuietly
beginComplexNotification, disableNotifications, enableNotifications, endComplexNotification
addObserver, deleteObserver, deleteObservers
public java.lang.Double getAsDouble(int row, int column)
Band
getAsDouble
in interface Band
public int getColumns()
Band
getColumns
in interface Band
public int getRows()
Band
public BandInfo getBandInfo()
Band
null
getBandInfo
in interface Band
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class BaseWeakReferencingObservable
java.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 Band
public boolean isPaginated()
isPaginated
in interface Band
public void set(int row, int column, java.lang.Object value)
Band
protected abstract void doSet(int row, int column, java.lang.Object value)
public void fill(java.lang.Object value)
Band
protected 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
Band
copyFrom
in interface Band
BandException
protected abstract void doCopyFrom(Band source) throws CopyFromBandException
CopyFromBandException
public void copyFrom(Band source, int row, int column) throws BandException
Band
copyFrom
in interface Band
BandException
protected abstract void doCopyFrom(Band source, int row, int column) throws CopyFromBandException
CopyFromBandException
public void putRow(int row, java.lang.Object rowBuffer)
Band
protected abstract void doPutRow(int row, java.lang.Object rowBuffer)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public final void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public void doDispose() throws BaseException
dispose()
method.BaseException
dispose()