Package org.gvsig.raster.lib.buffer.api
Interface Band
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.observer.ComplexObservable,org.gvsig.tools.observer.ComplexWeakReferencingObservable,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.observer.Observable,org.gvsig.tools.observer.WeakReferencingObservable
- All Known Subinterfaces:
Band.BandByte,Band.BandDouble,Band.BandFloat,Band.BandInt,Band.BandShort
public interface Band
extends org.gvsig.tools.lang.Cloneable, org.gvsig.tools.observer.ComplexWeakReferencingObservable, org.gvsig.tools.dispose.Disposable
- Author:
- fdiaz
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA Band which elements are bytes.static interfaceA Band which elements are doubles.static interfaceA Band which elements are floats.static interfaceA Band which elements are integers.static interfaceA Band which elements are shorts. -
Method Summary
Modifier and TypeMethodDescriptionvoidFills this band with a copy of the source data band.voidFills a sector of this band with a copy of the source band data from a position.Creates an array of corresponding data type.voidFills the rowBuffer Object with the row.voidFills the band with a unique value.get(int row, int column) Gets the corresponding value to a row and column of the bandgetAsDouble(int row, int column) Gets the corresponding value to a row and column of the band as a Double.Gets information about the specified band.intGets the number of columns of the bandintGets the dataType.Gets the NoData valueintgetRows()Gets the number of rows of the bandbooleanbooleanvoidFills the row with the rowBuffervoidSet the value in the row and column of the band.Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.tools.observer.ComplexObservable
beginComplexNotification, disableNotifications, enableNotifications, endComplexNotificationMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObservers
-
Method Details
-
getColumns
int getColumns()Gets the number of columns of the band- Returns:
- the number of columns of the band
-
getRows
int getRows()Gets the number of rows of the band- Returns:
- the number of rows of the band
-
getDataType
int getDataType()Gets the dataType. The possible data types are defined inBufferManager. The data type of the band can't be changed after being created.- Returns:
- the data type
-
getNoData
NoData getNoData()Gets the NoData value- Returns:
- the noData of the band. Can't be null;
-
get
Gets the corresponding value to a row and column of the band- Parameters:
row-column-- Returns:
- value of corresponding data type.
-
getAsDouble
Gets the corresponding value to a row and column of the band as a Double. return null if the value is the NoData value.- Parameters:
row-column-- Returns:
-
set
Set the value in the row and column of the band.- Parameters:
row-column-value-
-
fill
Fills the band with a unique value. If the value is null, fills with NoData value. If NoData is undefined, do nothing.- Parameters:
value-
-
copyFrom
Fills this band with a copy of the source data band.- Parameters:
source-- Throws:
BandException
-
copyFrom
Fills a sector of this band with a copy of the source band data from a position.- Parameters:
source-row-column-- Throws:
BandException
-
createRowBuffer
Object createRowBuffer()Creates an array of corresponding data type. The size of the array is the width of the band.- Returns:
- an array of corresponding data type.
-
fetchRow
Fills the rowBuffer Object with the row.- Parameters:
row-rowBuffer-
-
putRow
Fills the row with the rowBuffer- Parameters:
row-rowBuffer-
-
isPaginated
boolean isPaginated()- Returns:
- true if is paginated
-
isReadOnly
boolean isReadOnly()- Returns:
- If supports writing or not
-
getBandInfo
BandInfo getBandInfo()Gets information about the specified band. If band does not have information, it will returnnull- Parameters:
band- The specified band- Returns:
- Returns information about specified band.
-