es.prodevelop.gvsig.mobile.fmap.layer
Class FLyrVect

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.layer.FLyrDefault
      extended byes.prodevelop.gvsig.mobile.fmap.layer.FLyrVect
All Implemented Interfaces:
AlphanumericData, Classifiable, ClassifiableVectorial, FLayer, InfoByPoint, SingleLayer
Direct Known Subclasses:
FLayerFileVectorial

public class FLyrVect
extends FLyrDefault
implements ClassifiableVectorial, SingleLayer, AlphanumericData, InfoByPoint

Capa básica Vectorial.

Author:
Fernando González Cortés

Constructor Summary
FLyrVect()
           
 
Method Summary
 void clean()
           
 void draw(java.awt.Graphics2D g, ViewPort vp)
          Dibuja la capa
 void drawSelected(java.awt.Graphics2D g, ViewPort _vp, FSymbol sym)
           
 java.awt.geom.Rectangle2D getFullExtent()
          Obtiene la extensión completa de la capa
 long getId()
           
 java.util.ArrayList getInfo(java.awt.Point p, double tolerance, Cancellable cancel, java.lang.String srs)
          Realiza una consulta por punto en la capa
 Legend getLegend()
           
 SelectableDataSource getRecordset()
          Obtiene una referencia a la tabla asociada a la capa
 int getShapeType()
           
 ReadableVectorial getSource()
          Método que devuelve el VectorialAdapter que contiene la capa.
 boolean isPropertiesMenuVisible()
           
 boolean isWritable()
           
 FBitSet queryByPoint(java.awt.geom.Point2D p, double tolerance)
           
 void reload()
          Intenta recuperar una capa ante un posible error.
 void setLegend(VectorialLegend r)
          Inserta una leyenda de tipo VectorialLegend.
 void setRecordset(SelectableDataSource newSds)
           
 void setSource(ReadableVectorial rv)
          Inserta un VectorialAdapter a la capa.
 java.lang.String toString()
           
 java.lang.StringBuffer toXML(java.lang.String name, java.lang.String projectPath)
           
 void wakeUp(boolean driver_is_already_open)
           
 
Methods inherited from class es.prodevelop.gvsig.mobile.fmap.layer.FLyrDefault
addError, addLayerListener, getCacheImageDrawnLayers, getCoordTrans, getError, getErrors, getInfoString, getLayerListeners, getMapContext, getMaxScale, getMemo, getMinScale, getName, getNumErrors, getProjection, getProperty, getTransparency, isActive, isAvailable, isCachingDrawnLayers, isDirty, isInfoable, isInTOC, isOk, isVisible, isWithinScale, load, removeLayerListener, setActive, setAvailable, setCacheImageDrawnLayers, setCachingDrawnLayers, setCoordTrans, setDirty, setInfoable, setMapContext, setMaxScale, setMemo, setMinScale, setName, setProjection, setProperty, setTransparency, setVisible, visibleRequired
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FLyrVect

public FLyrVect()
Method Detail

getSource

public ReadableVectorial getSource()
Description copied from interface: SingleLayer
Método que devuelve el VectorialAdapter que contiene la capa.

Specified by:
getSource in interface SingleLayer
Returns:
VectorialAdapter de la capa.

setSource

public void setSource(ReadableVectorial rv)
Description copied from interface: SingleLayer
Inserta un VectorialAdapter a la capa.

Specified by:
setSource in interface SingleLayer
Parameters:
rv - VectorialAdapter a insertar.

getFullExtent

public java.awt.geom.Rectangle2D getFullExtent()
                                        throws FMapDriverException
Description copied from interface: FLayer
Obtiene la extensión completa de la capa

Specified by:
getFullExtent in interface FLayer
Returns:
FullExtent.
Throws:
FMapDriverException

drawSelected

public void drawSelected(java.awt.Graphics2D g,
                         ViewPort _vp,
                         FSymbol sym)
                  throws FMapDriverException
Throws:
FMapDriverException

draw

public void draw(java.awt.Graphics2D g,
                 ViewPort vp)
          throws FMapDriverException
Description copied from interface: FLayer
Dibuja la capa

Specified by:
draw in interface FLayer
Parameters:
g - Graphics2D sobre el que dibujar.
vp - Propiedades de la vista.
Throws:
FMapDriverException

queryByPoint

public FBitSet queryByPoint(java.awt.geom.Point2D p,
                            double tolerance)
                     throws FMapDriverException
Throws:
FMapDriverException

getInfo

public java.util.ArrayList getInfo(java.awt.Point p,
                                   double tolerance,
                                   Cancellable cancel,
                                   java.lang.String srs)
                            throws FMapDriverException
Description copied from interface: InfoByPoint
Realiza una consulta por punto en la capa

Specified by:
getInfo in interface InfoByPoint
Parameters:
p - Punto que se consulta
Returns:
String con el resultado en texto plano o en XML
Throws:
FMapDriverException

setLegend

public void setLegend(VectorialLegend r)
Description copied from interface: ClassifiableVectorial
Inserta una leyenda de tipo VectorialLegend.

Specified by:
setLegend in interface ClassifiableVectorial
Parameters:
r - VectorialLegend.

getLegend

public Legend getLegend()
Specified by:
getLegend in interface Classifiable

getShapeType

public int getShapeType()
                 throws FMapDriverException
Specified by:
getShapeType in interface Classifiable
Throws:
FMapDriverException

toString

public java.lang.String toString()

getRecordset

public SelectableDataSource getRecordset()
                                  throws FMapDriverException
Description copied from interface: AlphanumericData
Obtiene una referencia a la tabla asociada a la capa

Specified by:
getRecordset in interface AlphanumericData
Returns:
Tabla asociada
Throws:
FMapDriverException

setRecordset

public void setRecordset(SelectableDataSource newSds)

isPropertiesMenuVisible

public boolean isPropertiesMenuVisible()

reload

public void reload()
            throws FMapDriverException
Description copied from interface: FLayer
Intenta recuperar una capa ante un posible error. Si tiene algun problema en la carga, marca el avialable a false y lanza una excepcion.

Specified by:
reload in interface FLayer
Overrides:
reload in class FLyrDefault
Throws:
FMapDriverException

isWritable

public boolean isWritable()
Specified by:
isWritable in interface FLayer
Returns:
true if this layer can be put in edition mode and save the edits in itself.

wakeUp

public void wakeUp(boolean driver_is_already_open)
Specified by:
wakeUp in interface FLayer

getId

public long getId()
Specified by:
getId in interface FLayer

toXML

public java.lang.StringBuffer toXML(java.lang.String name,
                                    java.lang.String projectPath)
Specified by:
toXML in interface FLayer

clean

public void clean()
Specified by:
clean in interface FLayer