public class DatasetBandImpl extends java.lang.Object implements DatasetBand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENT_DESCRIPTION |
static java.lang.String |
PERSISTENT_NAME |
Constructor and Description |
---|
DatasetBandImpl()
Constructor
|
DatasetBandImpl(java.lang.String fileName,
int position,
int dataType,
int nBands)
Creates a new
DatasetBand |
DatasetBandImpl(java.net.URI uri,
int position,
int dataType,
int nBands)
Creates a new
DatasetBand |
Modifier and Type | Method and Description |
---|---|
void |
addPositionToDrawInBuffer(int rasterBufBandToDraw)
Adds a band of the output buffer where the input band is drawn.
|
void |
clearDrawableBands()
Resetea la asignación de dibujado de las bandas de la imagen
sobre el DataImage cuando se hace un update para esta banda.
|
java.lang.Object |
clone() |
java.lang.String[] |
getAdditionalName()
Obtiene la lista de nombres de fichero adicionales.
|
int[] |
getBufferBandListToDraw()
Obtiene las banda del RasterBuf sobre la que se pinta
este objeto banda
|
int |
getDataType()
Obtiene el tipo de dato de la banda
|
java.lang.String |
getFileName()
Obtiene el nombre del fichero al que pertenece la banda
|
int[] |
getLocalBufferBandListToDraw()
Obtiene las banda del RasterBuf sobre la que se pinta
este objeto banda
|
int |
getPosition()
Obtiene la posición de la banda en el fichero
|
boolean |
isDrawing()
Dice si la banda se está dibujando en el buffers de salida.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence()
Register persistence
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAdditionalName(java.lang.String fileName)
Asigna un nombre de fichero adicional al principal.
|
void |
setDataType(int dataType)
Asigna el tipo de dato de la banda
|
void |
setFileName(java.lang.String fileName)
Asigna el nombre del fichero al que pertenece la banda
|
void |
setPosition(int position)
Asigna la posición de la banda en el fichero
|
public static final java.lang.String PERSISTENT_NAME
public static final java.lang.String PERSISTENT_DESCRIPTION
public DatasetBandImpl()
public DatasetBandImpl(java.lang.String fileName, int position, int dataType, int nBands)
DatasetBand
fileName
- File nameposition
- Position of this band inside the providerdataType
- Data typenBands
- Number of bands of the providerpublic DatasetBandImpl(java.net.URI uri, int position, int dataType, int nBands)
DatasetBand
uri
- URIposition
- Position of this band inside the providerdataType
- Data typenBands
- Number of bands of the providerpublic java.lang.Object clone()
clone
in class java.lang.Object
public void clearDrawableBands()
clearDrawableBands
in interface DatasetBand
public int[] getBufferBandListToDraw()
getBufferBandListToDraw
in interface DatasetBand
public int[] getLocalBufferBandListToDraw()
getLocalBufferBandListToDraw
in interface DatasetBand
public boolean isDrawing()
isDrawing
in interface DatasetBand
public void addPositionToDrawInBuffer(int rasterBufBandToDraw)
rasterBufBandToDraw
is the number of band of the output buffer. This number is added to the list of numbers.addPositionToDrawInBuffer
in interface DatasetBand
rasterBufBandToDraw
- number of band of the Buffer
public java.lang.String getFileName()
getFileName
in interface DatasetBand
public void setFileName(java.lang.String fileName)
setFileName
in interface DatasetBand
fileName
- String con el nombre del fichero al
que pertenece la bandapublic int getPosition()
getPosition
in interface DatasetBand
public void setPosition(int position)
setPosition
in interface DatasetBand
position
- Posición de la banda en el ficheropublic int getDataType()
getDataType
in interface DatasetBand
public void setDataType(int dataType)
setDataType
in interface DatasetBand
datatype
- entero con el tipo de dato de la bandapublic void setAdditionalName(java.lang.String fileName)
setAdditionalName
in interface DatasetBand
public java.lang.String[] getAdditionalName()
getAdditionalName
in interface DatasetBand
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public static void registerPersistence()