|
||||||||||
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.MemoryLabelAdapter
Adapta un driver de texto a la interfaz vectorial, manteniendo además el estado necesario por una capa vectorial en memoria.
Constructor Summary | |
MemoryLabelAdapter()
|
Method Summary | |
void |
changeRecordsetName(java.lang.String newName)
Método abstracto que se ejecutará cuando se cambie el nombre del DataSource. |
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 |
setDataSource(DataSource ds)
Inserta el DataSource. |
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, getDriverAttributes, 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 MemoryLabelAdapter()
Method Detail |
public void setDataSource(DataSource ds)
ds
- DataSource.public DataSource getRecordset(java.lang.String name) throws DriverLoadException
VectorialAdapter
getRecordset
in class VectorialAdapter
name
- Nombre.
DriverLoadException
public void changeRecordsetName(java.lang.String newName) throws DriverException
VectorialAdapter
changeRecordsetName
in class VectorialAdapter
newName
- Nuevo nombre.
DriverException
public void start() throws DriverIOException
ReadableVectorial
DriverIOException
public void stop() throws DriverIOException
ReadableVectorial
DriverIOException
public IGeometry getShape(int index) throws DriverIOException
ReadableVectorial
index
- índice.
DriverIOException
public int getShapeCount() throws DriverIOException
ReadableVectorial
DriverIOException
public java.awt.geom.Rectangle2D getFullExtent() throws DriverIOException
ReadableVectorial
DriverIOException
public int getShapeType() throws DriverIOException
ReadableVectorial
DriverIOException
public int[] getRecordIndexes(java.awt.geom.Rectangle2D rect) throws DriverIOException, IndexNotExistsException
Index
rect
- Rectángulo.
IndexNotExistsException
DriverIOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |