|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interfaz a implementar por los drivers. El constructor no ha de tener parámetros y ha de ser rápido, para las tareas de inicialización de la capa se deberá de utilizar initialize.
Method Summary | |
boolean |
accept(java.io.File f)
Define los tipos de fichero que puede leer el driver. |
void |
close()
Cuando se terminan las operaciones sobre el fichero se invoca éste método para cerrar el descriptor que se abrió en f |
java.awt.geom.Rectangle2D |
getFullExtent()
Obtiene el bounding box de la capa |
IGeometry |
getShape(int index)
Obtiene del fichero abierto en open la geometría index-ésima |
int |
getShapeCount()
Obtiene el número de geometrías que contiene la capa |
void |
initialize()
Método invocado una sóla vez durante la ejecución justo antes de visualizar una capa. |
void |
open(java.io.File f)
Abre el fichero para una serie de operaciones. |
Methods inherited from interface com.iver.cit.gvsig.fmap.drivers.VectorialDriver |
getDriverAttributes, getShapeType |
Method Detail |
public void open(java.io.File f) throws java.io.IOException
f
- Fichero sobre el que se va a operar
java.io.IOException
- Si se produce algún errorpublic void close() throws java.io.IOException
java.io.IOException
- Si se produce algún errorpublic IGeometry getShape(int index) throws java.io.IOException
index
- Índice de la geometría que se quiere obtener
java.io.IOException
- Si se produce algún errorpublic int getShapeCount() throws java.io.IOException
java.io.IOException
- Si se produce algún errorpublic java.awt.geom.Rectangle2D getFullExtent() throws java.io.IOException
java.io.IOException
- Si se produce algún errorpublic void initialize() throws java.io.IOException
java.io.IOException
- Si se produce algún errorpublic boolean accept(java.io.File f)
f
- Fichero
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |