|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.driver.raster.RasterAdapter
es.prodevelop.gvsig.mobile.fmap.driver.raster.RasterFileAdapter
Adapta un driver de fichero vectorial a la interfaz vectorial, manteniendo además el estado necesario por una capa vectorial de fichero (el nombre del fichero)
Constructor Summary | |
RasterFileAdapter(java.io.File file)
Crea un nuevo VectorialFileAdapter. |
Method Summary | |
java.lang.Object |
getData(int x,
int y,
int band)
Obtiene una muestra del pixel que se pasa como parámetro en la banda que se pasa como parámetro |
java.io.File |
getFile()
Devuelve el fichero. |
java.awt.geom.Rectangle2D |
getFullExtent()
Devuelve la extensión total de la capa. |
int |
getNumBands()
Devuelve el número de bandas de raster. |
int |
getRasterDataType()
|
void |
start()
incrementa el contador de las veces que se ha abierto el fichero. |
void |
stop()
decrementa el contador de número de aperturas y cuando llega a cero pide al driver que cierre el fichero |
Methods inherited from class es.prodevelop.gvsig.mobile.fmap.driver.raster.RasterAdapter |
draw, getDriver, getTransparency, isGeoreferenced, setDriver, setTransparency |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RasterFileAdapter(java.io.File file)
file
- Fichero.Method Detail |
public void start() throws FMapDriverException
DriverIOException
FMapDriverException
public void stop() throws FMapDriverException
DriverIOException
FMapDriverException
public int getNumBands()
getNumBands
in class RasterAdapter
public java.awt.geom.Rectangle2D getFullExtent()
getFullExtent
in class RasterAdapter
public int getRasterDataType()
com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getShapeType()
public java.lang.Object getData(int x, int y, int band)
x
- Coordenada Xy
- Coordenada Yband
- Número de banda.
public java.io.File getFile()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |