|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.drivers.MemoryDriver
Clase abstracta para Driver en memoria.
Constructor Summary | |
MemoryDriver()
|
Method Summary | |
abstract boolean |
accept(java.io.File f)
Define los tipos de fichero que puede leer el driver. |
void |
addShape(FShape shp,
java.lang.Object[] row)
Añade un shape. |
void |
close()
Cuando se terminan las operaciones sobre el fichero se invoca éste método para cerrar el descriptor que se abrió en f |
boolean |
fileAccepted(java.io.File f)
|
int |
getFieldCount()
|
java.lang.String |
getFieldName(int fieldId)
|
Value |
getFieldValue(long rowIndex,
int fieldId)
|
java.awt.geom.Rectangle2D |
getFullExtent()
Obtiene el bounding box de la capa |
abstract java.lang.String |
getName()
|
long |
getRowCount()
|
IGeometry |
getShape(int index)
Obtiene del fichero abierto en open la geometría index-ésima |
java.awt.geom.Rectangle2D |
getShapeBounds(int index)
Devuelve el extent a partir de un índice. |
int |
getShapeCount()
Obtiene el número de geometrías que contiene la capa |
abstract int |
getShapeType()
Devuelve el tipo de los shapes que hay en el fichero. |
int |
getShapeType(int index)
Devuelve el tipo del shape. |
javax.swing.table.DefaultTableModel |
getTableModel()
Devuelve el modelo de la tabla. |
void |
initialize()
Método invocado una sóla vez durante la ejecución justo antes de visualizar una capa. |
abstract void |
open(java.io.File f)
Abre el fichero para una serie de operaciones. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.iver.cit.gvsig.fmap.drivers.VectorialDriver |
getDriverAttributes |
Constructor Detail |
public MemoryDriver()
Method Detail |
public javax.swing.table.DefaultTableModel getTableModel()
public void addShape(FShape shp, java.lang.Object[] row)
shp
- shape.row
- fila.public java.awt.geom.Rectangle2D getShapeBounds(int index) throws java.io.IOException
getShapeBounds
in interface BoundedShapes
index
- Índice.
java.io.IOException
public int getShapeType(int index)
getShapeType
in interface BoundedShapes
index
- Índice.
public abstract void open(java.io.File f) throws java.io.IOException
VectorialFileDriver
open
in interface VectorialFileDriver
f
- Fichero sobre el que se va a operar
java.io.IOException
- Si se produce algún errorpublic void close() throws java.io.IOException
VectorialFileDriver
close
in interface VectorialFileDriver
java.io.IOException
- Si se produce algún errorpublic IGeometry getShape(int index) throws java.io.IOException
VectorialFileDriver
getShape
in interface VectorialFileDriver
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
VectorialFileDriver
getShapeCount
in interface VectorialFileDriver
java.io.IOException
- Si se produce algún errorpublic java.awt.geom.Rectangle2D getFullExtent() throws java.io.IOException
VectorialFileDriver
getFullExtent
in interface VectorialFileDriver
java.io.IOException
- Si se produce algún errorpublic void initialize() throws java.io.IOException
VectorialFileDriver
initialize
in interface VectorialFileDriver
java.io.IOException
- Si se produce algún errorpublic abstract boolean accept(java.io.File f)
VectorialFileDriver
accept
in interface VectorialFileDriver
f
- Fichero
public abstract int getShapeType()
VectorialDriver
getShapeType
in interface VectorialDriver
public abstract java.lang.String getName()
public boolean fileAccepted(java.io.File f)
public Value getFieldValue(long rowIndex, int fieldId) throws DriverException
DriverException
public int getFieldCount() throws DriverException
DriverException
public java.lang.String getFieldName(int fieldId) throws DriverException
DriverException
public long getRowCount() throws DriverException
DriverException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |