public class FLyrBingMaps extends DefaultFLyrRaster implements IHasImageLegend
DefaultFLyrRaster.RasterTaskStatusFLyrDefault.RegisterMetadata, FLyrDefault.RegisterPersistencecolorTableLoadedFromProject, crsUtil, dataStore, fileUtil, lastLegend, loadedFromProject, mathUtil, PERSISTENT_DESCRIPTION, PERSISTENT_NAME, rasterUtil, readingData, recalcLevel, render, zoomLevellayerListeners, metadataContainerBANDS_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_RESOLUTIONAWAKE, CLOSED, OPEN, STOPPED, UNDEFINEDMETADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME| Constructor and Description |
|---|
FLyrBingMaps()
Creates a FLyrBingMaps
|
FLyrBingMaps(DataStoreParameters params)
Creates a FLyrBingMaps
|
| 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() |
Map<String,Object> |
getProperties()
Gets layer properties
|
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, wakeUpactivationChanged, 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, visibleRequireddispose, disposeclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMapContext, getMaxScale, getMinScale, getName, setMaxScale, setMinScaleaddError, 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, visibleRequiredclear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposegetExtendedProperties, getProperty, setPropertypublic FLyrBingMaps()
public FLyrBingMaps(DataStoreParameters params)
params - public static void registerPersistent()
public void setDataStore(DataStore dataStore) throws LoadLayerException
SingleLayersetDataStore in interface SingleLayersetDataStore in class DefaultFLyrRasterdataStore - a usar en la capa.LoadLayerExceptionpublic void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
FLayerdraw in interface FLayerdraw in interface FLyrRasterdraw in class DefaultFLyrRasterimage - 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 - ReadExceptionpublic void _print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
g - viewPort - cancel - scale - ReadExceptionpublic String getTocImageIcon()
FLayergetTocImageIcon in interface FLayergetTocImageIcon in class DefaultFLyrRasternull if there isn't anypublic boolean isActionEnabled(int action)
IRasterLayerActionsisActionEnabled in interface IRasterLayerActionsisActionEnabled in class DefaultFLyrRasteraction - Acción definida en LayerActionSupportedpublic ILegend getLegend()
DefaultFLyrRastergetLegend in interface ClassifiablegetLegend in class DefaultFLyrRasterpublic boolean isRemote()
FLyrRasterisRemote in interface FLyrRasterisRemote in class DefaultFLyrRasterpublic boolean overviewsSupport()
DefaultFLyrRasteroverviewsSupport in class DefaultFLyrRasterprotected void updateDrawVersion()
updateDrawVersion in class FLyrDefaultprotected void disableUpdateDrawVersion()
protected void enableUpdateDrawVersion()
public String getFileFormat()
FLyrRastergetFileFormat in interface FLyrRastergetFileFormat in class DefaultFLyrRasterpublic Envelope getFullEnvelope()
getFullEnvelope in interface FLayergetFullEnvelope in interface FLyrRastergetFullEnvelope in class DefaultFLyrRasterpublic Extent getFullRasterExtent()
FLyrRastergetFullRasterExtent in interface FLyrRastergetFullRasterExtent in class DefaultFLyrRasterpublic DynObjectSet getInfo(Point p, double tolerance, Cancellable cancel) throws LoadLayerException, DataException
InfoByPointExecutes 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 InfoByPointgetInfo in class DefaultFLyrRasterp - 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
InfoByPointExecutes 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 InfoByPointgetInfo in class DefaultFLyrRasterp - 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 - InitializeExceptionpublic Image getImageLegend()
getImageLegend in interface IHasImageLegendpublic String getPathImage()
getPathImage in interface IHasImageLegendpublic FLayer cloneLayer() throws Exception
FLayerThis 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 FLayercloneLayer in interface FLyrRastercloneLayer in class DefaultFLyrRasterException - any exception produced during the cloning of this layer.public void deleteCache(boolean deleteCache)
deleteCache -