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

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.layer.FLyrDefault
      extended byes.prodevelop.gvsig.mobile.fmap.layer.FLayerGenericRaster
All Implemented Interfaces:
FLayer, InfoByPoint, RasterOperations

public class FLayerGenericRaster
extends FLyrDefault
implements RasterOperations


Constructor Summary
FLayerGenericRaster()
           
 
Method Summary
 void clean()
           
static FLayerGenericRaster createEcwLayer(java.io.File f, java.lang.String name, MapContext mc)
           
static FLayerGenericRaster createWKFRasterLayer(java.io.File f, java.lang.String name, MapContext mc)
           
static FLayerGenericRaster createWMSLayer(java.lang.String url, java.lang.String srs, java.lang.String wmslayrs, java.lang.String format, java.lang.String name, MapContext mc)
           
 void draw(java.awt.Graphics2D g, ViewPort viewPort)
          Dibuja la capa
 java.lang.String getFilePath()
           
 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
 RasterAdapter getSource()
           
 int[] getTileSize()
           
 boolean isTiled()
           
 boolean isWritable()
           
 void setSource(RasterAdapter ra)
           
 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, reload, 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, toString, wait, wait, wait
 

Constructor Detail

FLayerGenericRaster

public FLayerGenericRaster()
Method Detail

createWMSLayer

public static FLayerGenericRaster createWMSLayer(java.lang.String url,
                                                 java.lang.String srs,
                                                 java.lang.String wmslayrs,
                                                 java.lang.String format,
                                                 java.lang.String name,
                                                 MapContext mc)

createWKFRasterLayer

public static FLayerGenericRaster createWKFRasterLayer(java.io.File f,
                                                       java.lang.String name,
                                                       MapContext mc)

createEcwLayer

public static FLayerGenericRaster createEcwLayer(java.io.File f,
                                                 java.lang.String name,
                                                 MapContext mc)

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

draw

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

Specified by:
draw in interface FLayer
Parameters:
g - Graphics2D sobre el que dibujar.
viewPort - Propiedades de la vista.
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.

getSource

public RasterAdapter getSource()
Specified by:
getSource in interface RasterOperations

setSource

public void setSource(RasterAdapter ra)
Specified by:
setSource in interface RasterOperations

isTiled

public boolean isTiled()
Specified by:
isTiled in interface RasterOperations

getTileSize

public int[] getTileSize()
Specified by:
getTileSize in interface RasterOperations

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

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

getFilePath

public java.lang.String getFilePath()

clean

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