|
||||||||||
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.dxf.DXFDriver
Constructor Summary | |
DXFDriver()
|
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 |
boolean |
fileAccepted(java.io.File f)
|
java.lang.String |
getDataDriverName()
|
java.io.File |
getDataFile(java.io.File f)
|
DriverAttributes |
getDriverAttributes()
Devuelve los atributos que necesitemos conocer de un driver. |
int |
getFieldCount()
|
java.lang.String |
getFieldName(int arg0)
|
Value |
getFieldValue(long arg0,
int arg1)
|
java.awt.geom.Rectangle2D |
getFullExtent()
Obtiene el bounding box de la capa |
java.lang.String |
getName()
|
long |
getRowCount()
|
IGeometry |
getShape(int i)
Obtiene del fichero abierto en open la geometría index-ésima |
java.awt.geom.Rectangle2D |
getShapeBounds(int index)
Obtiene el Rectángulo de la geometría iésima |
int |
getShapeCount()
Obtiene el número de geometrías que contiene la capa |
int |
getShapeType()
Devuelve el tipo de los shapes que hay en el fichero. |
int |
getShapeType(int index)
Devuelve el tipo de la geometría. |
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DXFDriver()
Method Detail |
public 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 i) throws java.io.IOException
VectorialFileDriver
getShape
in interface VectorialFileDriver
i
- Í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 boolean accept(java.io.File f)
VectorialFileDriver
accept
in interface VectorialFileDriver
f
- Fichero
public java.lang.String getDataDriverName()
public java.io.File getDataFile(java.io.File f)
public int getShapeType()
VectorialDriver
getShapeType
in interface VectorialDriver
public java.lang.String getName()
public java.awt.geom.Rectangle2D getShapeBounds(int index) throws java.io.IOException
BoundedShapes
getShapeBounds
in interface BoundedShapes
index
- Índice
java.io.IOException
public int getShapeType(int index)
BoundedShapes
getShapeType
in interface BoundedShapes
index
-
public boolean fileAccepted(java.io.File f)
public Value getFieldValue(long arg0, int arg1) throws DriverException
DriverException
public int getFieldCount() throws DriverException
DriverException
public java.lang.String getFieldName(int arg0) throws DriverException
DriverException
public long getRowCount() throws DriverException
DriverException
public DriverAttributes getDriverAttributes()
VectorialDriver
getDriverAttributes
in interface VectorialDriver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |