|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.layers.VectorialAdapter com.iver.cit.gvsig.fmap.layers.FLyrMemory
Clase que hace una pasada leyendo todos los shapes y almacenandolos en la memoria
Constructor Summary | |
FLyrMemory()
|
Method Summary | |
void |
changeRecordsetName(java.lang.String newName)
Método abstracto que se ejecutará cuando se cambie el nombre del DataSource. |
DriverAttributes |
getDriverAttributes()
|
java.awt.geom.Rectangle2D |
getFullExtent()
Devuelve la extensión total de la capa. |
int[] |
getRecordIndexes(java.awt.geom.Rectangle2D rect)
Dado un rectángulo en coordenadas del mapa se devuelve un array de indices de los registros cuyas features estén contenidas o intersecten en dicho rectángulo. |
DataSource |
getRecordset(java.lang.String name)
Devuelve el DataSource a pasrtir del nombre. |
IGeometry |
getShape(int index)
Devuelve la geometría a partir de un índice. |
int |
getShapeCount()
Devuelve el número de Shape. |
int |
getShapeType()
Obtiene el tipo de las geometrías almacenadas en esta fuente de datos |
void |
setSource(VectorialAdapter v)
Se guarda la referencia al driver y se guarda en memoria las features de dicho driver |
void |
start()
Indica que se va a comenzar a hacer una serie de operaciones sobre el origen de datos con la finalidad de que dicho origen de datos se prepare (abra el fichero, comience una transacción, conecte al servidor, ...). |
void |
stop()
Hace que se cierre el soporte físico de la capa. |
Methods inherited from class com.iver.cit.gvsig.fmap.layers.VectorialAdapter |
closeIndexFile, createIndex, getDriver, getImageIcon, getIndexFile, getShapeInfo, hasIndex, openIndexFile, setDriver, setShapeInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FLyrMemory()
Method Detail |
public void setSource(VectorialAdapter v)
v
- VectorialAdapter.public void start() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.start()
public void stop() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.stop()
public IGeometry getShape(int index) throws DriverIOException
ReadableVectorial
index
- índice.
DriverIOException
ReadableVectorial.getShape(int)
public int getShapeCount() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.getShapeCount()
public java.awt.geom.Rectangle2D getFullExtent() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.getFullExtent()
public int[] getRecordIndexes(java.awt.geom.Rectangle2D rect) throws DriverIOException, IndexNotExistsException
Index
rect
- Rectángulo.
IndexNotExistsException
DriverIOException
Index.getRecordIndexes(java.awt.geom.Rectangle2D)
public int getShapeType() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.getShapeType()
public DataSource getRecordset(java.lang.String name)
VectorialAdapter
getRecordset
in class VectorialAdapter
name
- Nombre.
com.iver.cit.gvsig.fmap.layers.VectorialAdapter#getRecordset()
public void changeRecordsetName(java.lang.String newName)
VectorialAdapter
changeRecordsetName
in class VectorialAdapter
newName
- Nuevo nombre.VectorialAdapter.changeRecordsetName(java.lang.String)
public DriverAttributes getDriverAttributes()
getDriverAttributes
in class VectorialAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |