|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.layer.VectorialAdapter
es.prodevelop.gvsig.mobile.fmap.layer.VectorialFileAdapter
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)
Field Summary | |
static java.lang.String |
DBF_FILE_DATASOURCE
|
static java.lang.String |
XML_FILE_DATASOURCE
|
Constructor Summary | |
VectorialFileAdapter(java.io.File f)
Crea un nuevo VectorialFileAdapter. |
Method Summary | |
IFeature |
getFeature(int numReg)
Returns the feature whose index is numReg Is synchronized to do thread safe accessing to features stored in files. |
java.io.File |
getFile()
Devuelve el fichero. |
SelectableDataSource |
getRecordset()
Devuelve el DataSource a pasrtir del nombre. |
IGeometry |
getShape(int index)
Is synchronized to allow thread safe access to features stored in files. |
int |
getShapeType()
Obtiene el tipo de las geometrías almacenadas en esta fuente de datos |
void |
setReferenceCount(int c)
|
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.layer.VectorialAdapter |
getDriver, getFullExtent, getImageIcon, getShapeBounds, getShapeCount, setDriver |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DBF_FILE_DATASOURCE
public static final java.lang.String XML_FILE_DATASOURCE
Constructor Detail |
public VectorialFileAdapter(java.io.File f)
f
- Fichero.Method Detail |
public void start() throws com.hardcode.gdbms.engine.data.driver.DriverException
DriverIOException
com.hardcode.gdbms.engine.data.driver.DriverException
public void stop() throws com.hardcode.gdbms.engine.data.driver.DriverException
DriverIOException
com.hardcode.gdbms.engine.data.driver.DriverException
public IGeometry getShape(int index) throws FMapDriverException
index
- índice.
FMapDriverException
com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getShape(int)
public int getShapeType() throws FMapDriverException
ReadableVectorial
FMapDriverException
com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getShapeType()
public SelectableDataSource getRecordset() throws com.hardcode.driverManager.DriverLoadException
VectorialAdapter
getRecordset
in interface ReadableVectorial
getRecordset
in class VectorialAdapter
com.hardcode.driverManager.DriverLoadException
com.iver.cit.gvsig.fmap.layers.VectorialAdapter#getRecordset()
public java.io.File getFile()
public IFeature getFeature(int numReg) throws FMapDriverException
getFeature
in interface ReadableVectorial
getFeature
in class VectorialAdapter
numReg
- index of feature
FMapDriverException
public void setReferenceCount(int c)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |