public class FLyrGoogleMaps extends DefaultFLyrRaster implements IHasImageLegend
DefaultFLyrRaster.RasterTaskStatus
FLyrDefault.RegisterMetadata, FLyrDefault.RegisterPersistence
colorTableLoadedFromProject, crsUtil, dataStore, fileUtil, lastLegend, loadedFromProject, mathUtil, PERSISTENT_DESCRIPTION, PERSISTENT_NAME, rasterUtil, readingData, recalcLevel, render, zoomLevel
layerListeners, metadataContainer
BANDS_FILE_LIST, BANDS_RGB, BRIGHTNESSCONTRAST, CLIPPING, COLOR_TABLE, CREATEOVERVIEWS, ENHANCED, FILTER, FLYRASTER_BAR_TOOLS, GEOLOCATION, HISTOGRAM, NODATA, OPACITY, PANSHARPENING, RASTER_PROPERTIES, REMOTE_ACTIONS, REPROJECT, SAVE_COLORINTERP, SAVEAS, SELECT_LAYER, STATS, TAILTRIM, TRANSPARENCY, ZOOM_PIXEL_RESOLUTION
AWAKE, CLOSED, OPEN, STOPPED, UNDEFINED
METADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME
Constructor and Description |
---|
FLyrGoogleMaps()
Creates a FLyrGoogleMaps
|
FLyrGoogleMaps(DataStoreParameters params)
Creates a FLyrGoogleMaps
|
Modifier and Type | Method and Description |
---|---|
void |
_print(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws the layer
|
FLayer |
cloneLayer()
This method can be used to have a fast cloned layer.
|
void |
deleteCache(boolean deleteCache)
Assigns the flag to delete this layer from the cache
|
protected void |
disableUpdateDrawVersion() |
void |
draw(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws the layer using a buffer.
|
protected void |
enableUpdateDrawVersion() |
String |
getFileFormat()
Returs a string with the extension of the first file
|
Envelope |
getFullEnvelope()
Devuelve el envelope en la proyeccion de la vista
|
Extent |
getFullRasterExtent()
Gets the full extent
|
Image |
getImageLegend() |
DynObjectSet |
getInfo(Point p,
double tolerance,
Cancellable cancel)
Executes a consultation about information of a point on the layer.
|
DynObjectSet |
getInfo(Point p,
double tolerance,
Cancellable cancel,
boolean fast)
Executes a consultation about information of a point on the layer.
|
ILegend |
getLegend()
Devuelve la Leyenda de la capa.
|
String |
getPathImage() |
String |
getTocImageIcon()
Returns the image icon that will be shown in the TOC next to this layer.
|
boolean |
isActionEnabled(int action)
Controla si una acción está activa o no para una determinada capa.
|
boolean |
isRemote()
Returns true if this layer is remote
|
boolean |
overviewsSupport()
Devuelve si la capa tiene soporte para poder generar overviews
|
void |
print(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintRequestAttributeSet properties)
Does nothing
|
static void |
registerPersistent()
Registers persistence
|
void |
setDataStore(DataStore dataStore)
Fija el DataStore asociado a la capa.
|
void |
setParameters(DataStoreParameters params)
Sets the data store parameters
|
protected void |
updateDrawVersion() |
addFile, addLegendListener, adjustWorldRequest, createLayer, decreaseZoomLevel, disableStopped, doDispose, draw, enableAwake, enableClosed, enableOpen, enableStopped, existColorTable, existsAlphaBand, finalize, getAffineTransform, getAffineTransformHistorical, getAlphaBandNumber, getAttributes, getBandCountFromDataset, getCellSize, getColorInterpretation, getConfiguration, getCoordsInLevel, getDataStore, getDataType, getFile, getFileCount, getFileLayer, getFileSize, getGeometryType, getInfo, getInfo, getMaxX, getMaxY, getMetadataChildren, getMetadataID, getMetadataName, getMinX, getMinY, getNoDataValue, getProjection, getRasterStrategy, getRender, getRois, getROIsFiles, getShapeType, getTileSize, getTransparency, getURI, getUris, getWCHeight, getWCWidth, getWktProjection, getZoomLevel, increaseZoomLevel, init, initFilters, isAwake, isClosed, isEnabledMultiresolution, isFileAccepted, isFileSupported, isGeoreferenced, isInside, isOpen, isReadingData, isRemoveRasterFlag, isRenderingAsGray, isReproyectable, isRGB, isStopped, isTiled, isTransparent, load, loadFromState, print, queryByPoint, readProjection, registerDynClass, registerPersistence, registerPersistence, reload, removeFile, removeLayerListener, removeLegendListener, saveGeoToRmf, saveToState, setAffineTransform, setAffineTransformWithoutHistorical, setConfiguration, setDataStore, setLastLegend, setLayerInitialized, setName, setNoDataTransparent, setNoDataValue, setOpenRasterStore, setProjection, setProjection, setReadingData, setRemoveRasterFlag, setRenderFilterList, setRois, setROIsFiles, setTileServer, setTransparency, setVisible, setZoomLevel, visualPropertyValueChanged, wakeUp
activationChanged, addError, addLayerListener, allowLinks, callEditionChanged, callLegendChanged, clear, delegate, drawValueChanged, editionChanged, getClassName, getCoordTrans, getDrawVersion, getDynClass, getDynValue, getError, getErrors, getExtendedProperties, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMinScale, getName, getNumErrors, getParentLayer, getProperty, getTocStatusImage, hasChangedForDrawing, hasDynValue, hidesThisArea, implement, invokeDynMethod, invokeDynMethod, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, nameChanged, newComposedLayer, reProject, setActive, setAvailable, setCoordTrans, setDynValue, setEditing, setError, setFLayerStatus, setInTOC, setMaxScale, setMinScale, setParentLayer, setProperty, setTemporary, setTocStatusImage, toString, visibilityChanged, visibleRequired
dispose, dispose
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMapContext, getMaxScale, getMinScale, getName, setMaxScale, setMinScale
addError, addLayerListener, allowLinks, getCoordTrans, getDrawVersion, getError, getErrors, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getNumErrors, getParentLayer, getTocStatusImage, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, newComposedLayer, setActive, setAvailable, setCoordTrans, setEditing, setError, setFLayerStatus, setInTOC, setParentLayer, setTemporary, visibleRequired
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
getExtendedProperties, getProperty, setProperty
public FLyrGoogleMaps()
public FLyrGoogleMaps(DataStoreParameters params)
params
- public static void registerPersistent()
public void setDataStore(DataStore dataStore) throws LoadLayerException
SingleLayer
setDataStore
in interface SingleLayer
setDataStore
in class DefaultFLyrRaster
dataStore
- a usar en la capa.LoadLayerException
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
FLayer
draw
in interface FLayer
draw
in interface FLyrRaster
draw
in class DefaultFLyrRaster
image
- an image used to accelerate the screen drawg
- for rendering 2-dimensional shapes, text and images on the Java(tm) platformviewPort
- information for drawing this layercancel
- an object thread that implements the Cancellable
interface, and will allow to cancel the drawscale
- value that represents the scaleReadException
- if fails the driver used in this method.com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage,
java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort,
com.iver.utiles.swing.threads.Cancellable)
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintRequestAttributeSet properties) throws ReadException
g
- viewPort
- cancel
- scale
- properties
- ReadException
public void _print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
g
- viewPort
- cancel
- scale
- ReadException
public String getTocImageIcon()
FLayer
getTocImageIcon
in interface FLayer
getTocImageIcon
in class DefaultFLyrRaster
null
if there isn't anypublic boolean isActionEnabled(int action)
IRasterLayerActions
isActionEnabled
in interface IRasterLayerActions
isActionEnabled
in class DefaultFLyrRaster
action
- Acción definida en LayerActionSupportedpublic ILegend getLegend()
DefaultFLyrRaster
getLegend
in interface Classifiable
getLegend
in class DefaultFLyrRaster
public boolean isRemote()
FLyrRaster
isRemote
in interface FLyrRaster
isRemote
in class DefaultFLyrRaster
public boolean overviewsSupport()
DefaultFLyrRaster
overviewsSupport
in class DefaultFLyrRaster
protected void updateDrawVersion()
updateDrawVersion
in class FLyrDefault
protected void disableUpdateDrawVersion()
protected void enableUpdateDrawVersion()
public String getFileFormat()
FLyrRaster
getFileFormat
in interface FLyrRaster
getFileFormat
in class DefaultFLyrRaster
public Envelope getFullEnvelope()
getFullEnvelope
in interface FLayer
getFullEnvelope
in interface FLyrRaster
getFullEnvelope
in class DefaultFLyrRaster
public Extent getFullRasterExtent()
FLyrRaster
getFullRasterExtent
in interface FLyrRaster
getFullRasterExtent
in class DefaultFLyrRaster
public DynObjectSet getInfo(Point p, double tolerance, Cancellable cancel) throws LoadLayerException, DataException
InfoByPoint
Executes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
getInfo
in interface InfoByPoint
getInfo
in class DefaultFLyrRaster
p
- point where is the consultationtolerance
- permissible margin around the coordinates of the point where
the method will got the information. Each
singular implementation of this method would use it in a
different way. The coordinates also depend on the
implementation.cancel
- shared object that determines if this layer can continue being
drawnLoadLayerException
- any exception produced using the driver.DataException
- TODOpublic DynObjectSet getInfo(Point p, double tolerance, Cancellable cancel, boolean fast) throws LoadLayerException, DataException
InfoByPoint
Executes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
getInfo
in interface InfoByPoint
getInfo
in class DefaultFLyrRaster
p
- point where is the consultationtolerance
- permissible margin around the coordinates of the point where
the method will got the information. Each
singular implementation of this method would use it in a
different way. The coordinates also depend on the
implementation.cancel
- shared object that determines if this layer can continue being
drawnfast
- if true try to reuse objects as much as possible to make the
object iteration faster. If true, DynObjects got through the
returned set must not be stored unless cloned.LoadLayerException
- any exception produced using the driver.DataException
- TODOpublic void setParameters(DataStoreParameters params) throws InitializeException
params
- InitializeException
public Image getImageLegend()
getImageLegend
in interface IHasImageLegend
public String getPathImage()
getPathImage
in interface IHasImageLegend
public FLayer cloneLayer() throws Exception
FLayer
This method can be used to have a fast cloned layer.
The implementations should take care of not recreate this layer. Instead of this, is better to use the same source (driver) and deepclone the legend. Exception: the labels aren't deepcloned to avoid memory consumption.
Note: Labels are memory consuming to speed up layers like PostGIS and so on.
cloneLayer
in interface FLayer
cloneLayer
in interface FLyrRaster
cloneLayer
in class DefaultFLyrRaster
Exception
- any exception produced during the cloning of this layer.public void deleteCache(boolean deleteCache)
deleteCache
-