es.prodevelop.gvsig.mobile.fmap.driver
Interface VectorialDriver

All Superinterfaces:
Driver
All Known Subinterfaces:
VectorialFileDriver
All Known Implementing Classes:
MemoryShpDriver

public interface VectorialDriver
extends Driver

Clase padre de los drivers vectoriales


Method Summary
 java.awt.geom.Rectangle2D getFullExtent()
          Obtiene el bounding box de la capa
 IGeometry getShape(int index)
           
 java.awt.geom.Rectangle2D getShapeBounds(int index)
           
 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.
 boolean isWritable()
           
 void reload()
           
 
Methods inherited from interface es.prodevelop.gvsig.mobile.fmap.driver.Driver
getName
 

Method Detail

getShapeType

public int getShapeType()
Devuelve el tipo de los shapes que hay en el fichero. Pueden haber varios tipos de shapes y para indicar esto se devuelve un bitoring de los tipos que contiene el fichero. Por ejemplo un fichero que contenga textos y lineas devolverá la expresión (FShape.LINE | FShape.TEXT)

Returns:
tipo de shape.

getShapeCount

public int getShapeCount()
                  throws java.io.IOException
Obtiene el número de geometrías que contiene la capa

Returns:
int
Throws:
java.io.IOException - Si se produce algún error

getFullExtent

public java.awt.geom.Rectangle2D getFullExtent()
                                        throws java.io.IOException
Obtiene el bounding box de la capa

Returns:
Rectangle2D
Throws:
java.io.IOException - Si se produce algún error

getShape

public IGeometry getShape(int index)
                   throws java.io.IOException
Throws:
java.io.IOException

reload

public void reload()
            throws java.io.IOException,
                   FMapDriverException
Throws:
java.io.IOException
FMapDriverException

isWritable

public boolean isWritable()

getShapeBounds

public java.awt.geom.Rectangle2D getShapeBounds(int index)
                                         throws java.io.IOException
Throws:
java.io.IOException