public class DefaultFLyrRaster extends FLyrDefault implements FLyrRaster, Multiresolution, InfoByPoint, Classifiable, IRasterLayerActions, ILayerState, VisualPropertyListener, SingleLayer
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultFLyrRaster.RasterTaskStatus |
FLyrDefault.RegisterMetadata, FLyrDefault.RegisterPersistence| Modifier and Type | Field and Description |
|---|---|
protected ColorTable |
colorTableLoadedFromProject |
protected CRSUtils |
crsUtil |
protected RasterDataStore |
dataStore |
protected FileUtils |
fileUtil |
protected ILegend |
lastLegend |
protected boolean |
loadedFromProject |
protected MathUtils |
mathUtil |
static java.lang.String |
PERSISTENT_DESCRIPTION |
static java.lang.String |
PERSISTENT_NAME |
protected RasterUtils |
rasterUtil |
protected java.lang.String |
readingData |
boolean |
recalcLevel |
protected Render |
render |
protected int |
zoomLevel |
drawVersion, layerListeners, metadataContainer, propertiesBANDS_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 |
|---|
DefaultFLyrRaster() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(java.io.File file)
Adds a new file.
|
void |
addLegendListener(LegendListener listener)
Adds the specified legend listener to receive legend events from the inner legend.
|
java.awt.geom.Point2D |
adjustWorldRequest(java.awt.geom.Point2D req)
Ajusta las coordenadas especificadas en el parámetro al área máxima
del raster en píxeles.
|
FLayer |
cloneLayer()
This method can be used to have a fast cloned layer.
|
protected DefaultFLyrRaster |
cloneLayer0() |
protected DefaultFLyrRaster |
cloneLayer1(DefaultFLyrRaster newLayer) |
static DefaultFLyrRaster |
createLayer(java.lang.String layerName,
java.io.File file)
Builds a new raster layer
|
boolean |
decreaseZoomLevel()
Decrease the current zoom level
|
void |
disableStopped()
Desactiva la detención de la capa.
|
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
protected void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort vp,
Cancellable cancel) |
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort vp,
Cancellable cancel,
double scale)
Draws the layer using a buffer.
|
void |
enableAwake()
Asigna el flag que dice si una capa está levantada.
|
void |
enableClosed()
Asigna una capa como cerrada.
|
void |
enableOpen()
Asigna una capa como abierta.
|
void |
enableStopped()
Activa la detención de la capa.
|
boolean |
existColorTable()
Returns true if a color table exists
|
boolean |
existsAlphaBand()
Returns true if the data store has an alpha band
|
protected void |
finalize() |
java.awt.geom.AffineTransform |
getAffineTransform()
Recupera del raster la matriz de transformación que lo situa en cualquier parte de la vista
|
Historical |
getAffineTransformHistorical()
Obtiene la lista de transformaciones que se han ido aplicando al raster.
|
int |
getAlphaBandNumber()
Gets the position of the alpha band
|
java.util.ArrayList<java.lang.Object> |
getAttributes()
Gets the attribute list
Filename
Filesize
Width
Height
Bands
|
int[] |
getBandCountFromDataset()
Returns the number of bands of each dataset
|
double |
getCellSize()
Obtiene el tamaño de celda de la fuente de datos
|
java.lang.String |
getColorInterpretation(int band,
int dataset)
Gets the color interpretation
|
static IConfiguration |
getConfiguration() |
Envelope |
getCoordsInLevel(java.awt.geom.Point2D center,
int level,
int w,
int h)
Calculates the bounding box of a zoom level using a center defined in pixels.
|
RasterDataStore |
getDataStore()
Gets the DataStore
|
int[] |
getDataType() |
RasterDataServerExplorer |
getExplorer()
Gets the explorer
|
java.io.File |
getFile()
Devuelve el fichero asociado a la capa o null si no tiene.
|
int |
getFileCount()
Returns the number of files in this raster layer
|
java.lang.String |
getFileFormat()
Returs a string with the extension of the first file
|
FLayer |
getFileLayer()
Gets a layer which the source is a file
|
long[] |
getFileSize()
Gets the size of all files of this raster layer
|
Envelope |
getFullEnvelope()
Returns the full bounding box of this layer
|
Extent |
getFullRasterExtent()
Gets the full extent
|
GeometryType |
getGeometryType()
Returns the layer's geometry type
|
DynObjectSet |
getInfo(Point p,
double tolerance)
Executes a consultation about information of a point on the layer.
|
DynObjectSet |
getInfo(java.awt.Point p,
double tolerance,
Cancellable cancel)
Executes a consultation about information of a point on the layer.
|
DynObjectSet |
getInfo(java.awt.Point p,
double tolerance,
Cancellable cancel,
boolean fast)
Executes a consultation about information of a point on the layer.
|
java.lang.Object |
getInfo(java.lang.String key) |
ILegend |
getLegend()
Devuelve la Leyenda de la capa.
|
double |
getMaxX()
Obtiene el valor del pixel del Image en la posición x,y
|
double |
getMaxY() |
java.util.Set |
getMetadataChildren()
Returns an unsorted set of child Metadata objects.
|
java.lang.Object |
getMetadataID()
Returns the unique identifier of the Metadata.
|
java.lang.String |
getMetadataName()
Returns the name of the Metadata, which allows to identify the type in
the Metadata registry.
|
double |
getMinX() |
double |
getMinY() |
NoData |
getNoDataValue()
Obtiene el valor NoData asociado al raster.
|
IProjection |
getProjection()
Returns the current projection.
|
java.util.HashMap<DefaultFLyrRaster,java.lang.Boolean> |
getRasterStrategy()
Si ya tiene una estrategia de dibujado de raster calculada la devuelve, sino
devolverá null.
|
Render |
getRender()
Crea el objeto renderizador de raster
|
java.util.List<ROI> |
getRois()
Gets the regions of interest
|
java.util.List<java.io.File> |
getROIsFiles()
Gets the files which contain the regions of interest.
|
int |
getShapeType()
Returns the type of the shape.
|
int[] |
getTileSize()
Gets the tile size
|
java.lang.String |
getTocImageIcon()
Returns the image icon that will be shown in the TOC next to this layer.
|
int |
getTransparency()
Consulta la transparencia asignada en la última renderización de la capa
|
java.net.URI |
getURI()
Gets the uniform resource identifier
|
java.net.URI[] |
getUris()
Gets the list of URIs
|
double |
getWCHeight()
Gets the height in world coordinates of this raster layer
|
double |
getWCWidth()
Gets the width in world coordinates of this raster layer
|
java.lang.String |
getWktProjection()
Gets the projection in well known text format
|
int |
getZoomLevel()
Gets the current zoom level
|
boolean |
increaseZoomLevel()
Increase the current zoom level
|
void |
init()
Acciones de inicialización después de que la fuente de datos
de la capa está asignada.
|
protected void |
initFilters()
Initializes the filter list to render this raster layer
|
boolean |
isActionEnabled(int action)
Controla si una acción está activa o no para una determinada capa.
|
boolean |
isAwake()
Consulta si una capa está lecantada o no.
|
boolean |
isClosed()
Consulta si una capa está cerrada o no.
|
boolean |
isEnabledMultiresolution()
Returns true if the multiresolution is enabled
|
boolean |
isFileAccepted(java.io.File file)
Consulta si un fichero es aceptado o no para este tipo de capa.
|
static boolean |
isFileSupported(java.io.File file)
Consulta si un fichero es aceptado o no para este tipo de capa.
|
boolean |
isGeoreferenced()
Obtiene el flag que dice si la imagen está o no georreferenciada
|
boolean |
isInside(java.awt.geom.Point2D p)
Metodo que obtiene si un punto cae dentro de los límites de la capa
o fuera de ellos.
|
boolean |
isOpen()
Consulta si una capa está abierta o no.
|
boolean |
isReadingData()
Returns true if exists a process reading data from this layer
|
boolean |
isRemote()
Returns true if this layer is remote
|
boolean |
isRemoveRasterFlag() |
boolean |
isRenderingAsGray()
Devuelve si la asignacion de las bandas a renderizar representa una capa
en escala de grises
|
boolean |
isReproyectable()
Devuelve si es reproyectable o no la capa
|
boolean |
isRGB()
Metodo para consultar si una capa puede ser un RGB.
|
boolean |
isStopped()
Consulta el estado de detención.
|
boolean |
isTiled()
Returns true if the drawn is going to be tiled
|
boolean |
isTransparent()
Consulta si tiene aplicada alguna transparencia en la última renderización
o no.
|
void |
load()
Executes the initialization operations of this layer.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
boolean |
overviewsSupport()
Devuelve si la capa tiene soporte para poder generar overviews
|
void |
print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintAttributes propeties)
Prints this layer according to some properties requested.
|
java.lang.String |
queryByPoint(java.awt.Point p) |
IProjection |
readProjection()
Obtiene la proyección del fichero.
|
static void |
registerDynClass() |
static void |
registerPersistence() |
static void |
registerPersistence(DynStruct definition) |
void |
reload()
Tries recover a layer of a possible error.
|
void |
removeFile(java.io.File file)
Removes a file.
|
boolean |
removeLayerListener(LayerListener o)
Borra de la lista de listeners el que se pasa como parámetro.
|
void |
removeLegendListener(LegendListener listener)
Removes the specified legend listener so that it no longer receives legend events from the inner
legend.
|
void |
saveGeoToRmf()
Salva la georreferenciación a fichero rmf.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAffineTransform(java.awt.geom.AffineTransform transf)
Asigna al raster la matriz de transformación para situarlo en cualquier parte de la vista
|
void |
setAffineTransformWithoutHistorical(java.awt.geom.AffineTransform transf)
Asigna al raster la matriz de transformación para situarlo en cualquier parte de la vista.
|
static void |
setConfiguration(IConfiguration configuration) |
void |
setDataStore(DataStore dataStore)
Fija el DataStore asociado a la capa.
|
void |
setDataStore(DataStore dataStore,
java.lang.String domain) |
void |
setExplorer(RasterDataServerExplorer explorer)
Sets the explorer
|
void |
setLastLegend(ColorTable ct)
Define la ultima leyenda valida de la capa o se pone a null para que la
capa busque una leyenda valida.
|
void |
setLayerInitialized(boolean initialized)
Sets the layer as initialized.
|
void |
setName(java.lang.String name)
Sets a name to this layer.
|
void |
setNoDataTransparent(boolean t)
When this flag is true then renderice nodata value as transparent
|
void |
setNoDataValue(NoData nd)
Sets the nodata value for this layer
|
void |
setOpenRasterStore(DataStore dataStore) |
void |
setProjection(IProjection proj)
Inserta la proyección.
|
void |
setProjection(IProjection proj,
boolean persist)
Sets the layer projection
|
void |
setReadingData(java.lang.String readingData)
When a process is using information of this layer this variable will contain
the thread ID.
|
void |
setRemoveRasterFlag(boolean removeRasterFlag)
Asigna el valor del flag que dice si destruimos la memoria del raster
al eliminarlo del TOC o no.
|
void |
setRenderFilterList(RasterFilterList filterList)
Sets the filter list
|
void |
setRois(java.util.List<ROI> rois)
Sets the regions of interest
|
void |
setROIsFiles(java.util.List<java.io.File> file)
Sets the files which contain the regions of interest.
|
void |
setTileServer(java.lang.Class<?> tileServer)
Sets a tile server to create a second level of cache.
|
void |
setTransparency(int trans)
Asigna la transparencia de la siguiente renderización
|
void |
setVisible(boolean visibility)
Changes the status of this layer to visible or not.
|
void |
setZoomLevel(int zoomLevel)
Sets the current zoom level
|
void |
visualPropertyValueChanged(VisualPropertyEvent e)
Evento que se dispara cuando cambia el valor de la propiedad.
|
void |
wakeUp()
Method called by
FLayers to notify this layer that is
going to be added.This previous notification is useful for the layers
that need do something before being added. |
activationChanged, addError, addLayerListener, allowLinks, callEditionChanged, callLegendChanged, clear, delegate, drawValueChanged, editionChanged, getClassName, getCoordTrans, getDefaultTolerance, getDrawVersion, getDynClass, getDynValue, getError, getErrors, getExtendedProperties, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMinScale, getName, getNumErrors, getParentLayer, getProperty, getTocStatusImage, hasChangedForDrawing, hasDynValue, hidesThisArea, implement, invalidate, 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, updateDrawVersion, updateDrawVersion, visibilityChanged, visibleRequireddispose, disposeclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMapContext, getMaxScale, getMinScale, getName, setMaxScale, setMinScaleaddError, addLayerListener, allowLinks, getCoordTrans, getDefaultTolerance, getDrawVersion, getError, getErrors, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getNumErrors, getParentLayer, getTocStatusImage, invalidate, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, newComposedLayer, setActive, setAvailable, setCoordTrans, setEditing, setError, setFLayerStatus, setInTOC, setParentLayer, setTemporary, visibleRequiredclear, clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposegetExtendedProperties, getProperty, setPropertypublic static final java.lang.String PERSISTENT_NAME
public static final java.lang.String PERSISTENT_DESCRIPTION
protected RasterDataStore dataStore
protected Render render
protected ILegend lastLegend
protected ColorTable colorTableLoadedFromProject
protected boolean loadedFromProject
protected int zoomLevel
public boolean recalcLevel
protected FileUtils fileUtil
protected RasterUtils rasterUtil
protected CRSUtils crsUtil
protected MathUtils mathUtil
protected java.lang.String readingData
public static void registerDynClass()
public static DefaultFLyrRaster createLayer(java.lang.String layerName, java.io.File file) throws LoadLayerException
fileName - RasterNotLoadExceptionLoadLayerExceptionpublic void setName(java.lang.String name)
FLayersetName in interface FLayersetName in class FLyrDefaultname - the string that is to be this layer's nameFLayer.getName()public void wakeUp()
FLyrDefault
Method called by FLayers to notify this layer that is
going to be added.This previous notification is useful for the layers
that need do something before being added. For example, the raster needs
reopen a file that could have been closed recently.
wakeUp in class FLyrDefaultpublic void load()
throws LoadLayerException
FLayerExecutes the initialization operations of this layer. This method is invoked only one time during the life of this layer and just before visualize it.
load in interface FLayerload in class FLyrDefaultLoadLayerException - if fails loading the layer.FLayer.reload()public void setLayerInitialized(boolean initialized)
FLyrRastersetLayerInitialized in interface FLyrRasterpublic void init()
throws LoadLayerException,
FilePaletteException
public IProjection readProjection() throws RasterDriverException
FLyrRasterreadProjection in interface FLyrRasterRasterDriverExceptionpublic Render getRender()
getRender in interface FLyrRasterpublic java.net.URI getURI()
FLyrRastergetURI in interface FLyrRasterpublic void setNoDataTransparent(boolean t)
FLyrRastersetNoDataTransparent in interface FLyrRasterprotected void initFilters()
throws FilePaletteException
FilePaletteExceptionpublic boolean isReproyectable()
FLyrRasterisReproyectable in interface FLyrRasterpublic void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort vp,
Cancellable cancel,
double scale)
throws ReadException
FLayerdraw in interface FLayerdraw in interface FLyrRasterimage - an image used to accelerate the screen drawg - for rendering 2-dimensional shapes, text and images on the Java(tm) platformvp - information for drawing this layercancel - an object thread that implements the Cancellable interface, and will allow to cancel the drawscale - value that represents the scaleReadExceptionReadDriverExceptioncom.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)protected void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort vp,
Cancellable cancel)
throws QueryException,
ProcessInterruptedException
public void setProjection(IProjection proj)
setProjection in interface FLayersetProjection in class FLyrDefaultproj - Proyección.#isReprojectable(),
#reProject(MapControl)public void setProjection(IProjection proj, boolean persist)
FLyrRastersetProjection in interface FLyrRasterpublic Envelope getFullEnvelope()
FLyrRastergetFullEnvelope in interface FLayergetFullEnvelope in interface FLyrRasterpublic double getMaxX()
x - Posición xy - Posición ypublic double getMaxY()
public double getMinX()
public double getMinY()
public java.lang.String queryByPoint(java.awt.Point p)
public java.util.ArrayList<java.lang.Object> getAttributes()
FLyrRastergetAttributes in interface FLyrRasterpublic void print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintAttributes propeties)
throws ReadException
FLayerprint in interface FLayerg - for rendering 2-dimensional shapes, text and images on the Java(tm) platformviewPort - the information for drawing the layerscancel - an object thread that implements the Cancellable interface, and will allow to cancel the drawscale - the scale of the view. Must be between FLayer.getMinScale() and FLayer.getMaxScale().propeties - a set with the settings to be applied to a whole print job and to all the docs in the print jobReadException - if fails the driver used in this method.FLayer.draw(BufferedImage, Graphics2D, ViewPort, Cancellable, double)public boolean removeLayerListener(LayerListener o)
removeLayerListener in interface FLayerremoveLayerListener in interface FLyrRasterremoveLayerListener in class FLyrDefaulto - LayerListener a borrar.FLayer.addLayerListener(LayerListener),
FLayer.getLayerListeners()public boolean isRemoveRasterFlag()
isRemoveRasterFlag in interface FLyrRasterpublic void setRemoveRasterFlag(boolean removeRasterFlag)
FLyrRastersetRemoveRasterFlag in interface FLyrRasterremoveRasterFlag - The removeRasterFlag to set.public java.lang.String getTocImageIcon()
FLayergetTocImageIcon in interface FLayergetTocImageIcon in class FLyrDefaultnull if there isn't anypublic int[] getTileSize()
FLyrRastergetTileSize in interface FLyrRasterpublic boolean isTiled()
FLyrRasterisTiled in interface FLyrRasterpublic boolean isGeoreferenced()
FLyrRasterisGeoreferenced in interface FLyrRasterpublic NoData getNoDataValue()
FLyrRastergetNoDataValue in interface FLyrRasterpublic void setNoDataValue(NoData nd)
setNoDataValue in interface FLyrRasternd - public double getWCHeight()
public double getWCWidth()
public long[] getFileSize()
public java.net.URI[] getUris()
public int getFileCount()
public java.lang.String getFileFormat()
FLyrRastergetFileFormat in interface FLyrRasterpublic int[] getDataType()
public void setRenderFilterList(RasterFilterList filterList)
public DynObjectSet getInfo(Point p, double tolerance) 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 InfoByPointp - point in map coordinates 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 unit are in map coordinates.LoadLayerExceptionDataExceptionpublic java.lang.Object getInfo(java.lang.String key)
public int[] getBandCountFromDataset()
FLyrRastergetBandCountFromDataset in interface FLyrRasterpublic java.lang.String getColorInterpretation(int band,
int dataset)
FLyrRastergetColorInterpretation in interface FLyrRasterpublic java.lang.String getWktProjection()
throws RasterDriverException
FLyrRastergetWktProjection in interface FLyrRasterRasterDriverExceptionpublic boolean isRGB()
FLyrRasterisRGB in interface FLyrRasterpublic double getCellSize()
public Extent getFullRasterExtent()
FLyrRastergetFullRasterExtent in interface FLyrRasterpublic java.io.File getFile()
public boolean isFileAccepted(java.io.File file)
file - Fichero a consultarpublic static boolean isFileSupported(java.io.File file)
file - Fichero a consultarpublic boolean existColorTable()
FLyrRasterexistColorTable in interface FLyrRasterpublic boolean existsAlphaBand()
public int getAlphaBandNumber()
FLyrRastergetAlphaBandNumber in interface FLyrRasterpublic void setLastLegend(ColorTable ct)
setLastLegend in interface FLyrRasterct - public ILegend getLegend()
getLegend in interface Classifiablepublic void addLegendListener(LegendListener listener)
ClassifiableaddLegendListener in interface ClassifiableaddLegendListener in class FLyrDefaultlistener - the legend listenerClassifiable.removeLegendListener(LegendListener)public int getShapeType()
ClassifiableReturns the type of the shape.
All geometry types are defined in Geometry.TYPES.
For getting the equivalent shape of a geometry type, you must use a method like
SHPFileWrite#getShapeType().
getShapeType in interface ClassifiableGeometry,
Constantpublic void removeLegendListener(LegendListener listener)
ClassifiableremoveLegendListener in interface ClassifiableremoveLegendListener in class FLyrDefaultlistener - the legend listenerLayerChangeSupport.removeLayerListener(LegendListener)public boolean isInside(java.awt.geom.Point2D p)
FLyrRasterisInside in interface FLyrRasterp - Punto a calcularpublic java.awt.geom.AffineTransform getAffineTransform()
FLyrRastergetAffineTransform in interface FLyrRasterpublic void setAffineTransform(java.awt.geom.AffineTransform transf)
FLyrRastersetAffineTransform in interface FLyrRasterpublic void setAffineTransformWithoutHistorical(java.awt.geom.AffineTransform transf)
FLyrRastersetAffineTransformWithoutHistorical in interface FLyrRasterpublic Historical getAffineTransformHistorical()
FLyrRastergetAffineTransformHistorical in interface FLyrRasterpublic void saveGeoToRmf()
throws RmfSerializerException
FLyrRastersaveGeoToRmf in interface FLyrRasterRmfSerializerExceptionpublic boolean isActionEnabled(int action)
IRasterLayerActionsisActionEnabled in interface IRasterLayerActionsaction - Acción definida en LayerActionSupportedpublic void setVisible(boolean visibility)
FLayerChanges the status of this layer to visible or not.
One layer is visible if it's check box associated is selected. This means
that layer will tried to be painted. If the data associated isn't available,
then this property will change to false.
setVisible in interface FLayersetVisible in class FLyrDefaultvisibility - the boolean to be setFLayer.isVisible(),
FLayer.visibleRequired(),
FLayer.isAvailable()public int getTransparency()
getTransparency in class FLyrDefaultFLyrDefault.setTransparency(int)public boolean isTransparent()
public void setTransparency(int trans)
setTransparency in class FLyrDefaultvalor - de transparenciaFLyrDefault.getTransparency()public java.util.List<ROI> getRois() throws ROIException
FLyrRastergetRois in interface FLyrRasterROIExceptionpublic void setRois(java.util.List<ROI> rois)
FLyrRastersetRois in interface FLyrRasterpublic void setROIsFiles(java.util.List<java.io.File> file)
throws RmfSerializerException
FLyrRastersetROIsFiles in interface FLyrRasterRmfSerializerExceptionpublic java.util.List<java.io.File> getROIsFiles()
throws RmfSerializerException
FLyrRastergetROIsFiles in interface FLyrRasterRmfSerializerExceptionpublic java.util.HashMap<DefaultFLyrRaster,java.lang.Boolean> getRasterStrategy()
public static IConfiguration getConfiguration()
public static void setConfiguration(IConfiguration configuration)
configuration - the configuration to setpublic void reload()
throws ReloadLayerException
FLayerTries recover a layer of a possible error.
If it has any problem during the load, marks the availability to false and throws an exception.
reload in interface FLayerreload in class FLyrDefaultReloadLayerException - if it's thrown a ReadException or an
IOException during the load of this layer.FLayer.load()public boolean overviewsSupport()
public boolean isRenderingAsGray()
public void visualPropertyValueChanged(VisualPropertyEvent e)
VisualPropertyListenervisualPropertyValueChanged in interface VisualPropertyListenerpublic java.awt.geom.Point2D adjustWorldRequest(java.awt.geom.Point2D req)
FLyrRasteradjustWorldRequest in interface FLyrRasterreq - Punto a ajustar dentro del extener del rasterpublic void setExplorer(RasterDataServerExplorer explorer)
explorer - public RasterDataServerExplorer getExplorer()
public FLayer cloneLayer() throws java.lang.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 FLyrDefaultjava.lang.Exception - any exception produced during the cloning of this layer.protected DefaultFLyrRaster cloneLayer0() throws java.lang.Exception
java.lang.Exceptionprotected DefaultFLyrRaster cloneLayer1(DefaultFLyrRaster newLayer) throws java.lang.Exception
java.lang.Exceptionpublic FLayer getFileLayer() throws RasterDriverException
FLyrRastergetFileLayer in interface FLyrRasterRasterDriverExceptionpublic void addFile(java.io.File file)
throws InvalidSourceException
FLyrRasteraddFile in interface FLyrRasterInvalidSourceExceptionpublic void removeFile(java.io.File file)
FLyrRasterremoveFile in interface FLyrRasterpublic void disableStopped()
ILayerStatedisableStopped in interface ILayerStatepublic void enableAwake()
throws NotAvailableStateException
ILayerStateenableAwake in interface ILayerStateNotAvailableStateException - Excepción lanzada si no es posible alcanzar el estadopublic void enableClosed()
throws NotAvailableStateException
ILayerStateenableClosed in interface ILayerStateNotAvailableStateException - Excepción lanzada si no es posible alcanzar el estadopublic void enableOpen()
throws NotAvailableStateException
ILayerStateenableOpen in interface ILayerStateNotAvailableStateException - Excepción lanzada si no es posible alcanzar el estadopublic void enableStopped()
ILayerStateenableStopped in interface ILayerStatepublic boolean isAwake()
ILayerStateisAwake in interface ILayerStatepublic boolean isClosed()
ILayerStateisClosed in interface ILayerStatepublic boolean isOpen()
ILayerStateisOpen in interface ILayerStatepublic boolean isStopped()
ILayerStateisStopped in interface ILayerStatepublic java.util.Set getMetadataChildren()
MetadatagetMetadataChildren in interface Metadatapublic java.lang.Object getMetadataID()
MetadatagetMetadataID in interface Metadatapublic java.lang.String getMetadataName()
MetadatagetMetadataName in interface MetadatagetMetadataName in class FLyrDefaultpublic RasterDataStore getDataStore()
FLyrRastergetDataStore in interface HasDataStoregetDataStore in interface SingleLayergetDataStore in interface FLyrRasterpublic IProjection getProjection()
ProjectedReturns the current projection.
getProjection in interface ProjectedgetProjection in interface FLyrRastergetProjection in class FLyrDefaultProjected.reProject(ICoordTrans)public void setOpenRasterStore(DataStore dataStore) throws LoadLayerException
LoadLayerExceptionpublic void setDataStore(DataStore dataStore) throws LoadLayerException
SingleLayersetDataStore in interface SingleLayerdataStore - a usar en la capa.LoadLayerExceptionpublic boolean isRemote()
FLyrRasterisRemote in interface FLyrRasterpublic boolean isReadingData()
public void setReadingData(java.lang.String readingData)
setReadingData in interface FLyrRasterreadingData - public DynObjectSet getInfo(java.awt.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 InfoByPointp - 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 DynObjectSet getInfo(java.awt.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 InfoByPointp - 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 - TODOprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDisposableBaseExceptionAbstractDisposable.dispose()public int getZoomLevel()
MultiresolutiongetZoomLevel in interface Multiresolutionpublic void setZoomLevel(int zoomLevel)
MultiresolutionsetZoomLevel in interface Multiresolutionpublic boolean increaseZoomLevel()
MultiresolutionincreaseZoomLevel in interface Multiresolutionpublic boolean decreaseZoomLevel()
MultiresolutiondecreaseZoomLevel in interface Multiresolutionpublic Envelope getCoordsInLevel(java.awt.geom.Point2D center, int level, int w, int h) throws CreateEnvelopeException
MultiresolutiongetCoordsInLevel in interface Multiresolutioncenter - center in world coordinateslevel - level of resolutionw - width in pixelsh - height in pixelsCreateEnvelopeExceptionpublic boolean isEnabledMultiresolution()
MultiresolutionisEnabledMultiresolution in interface Multiresolutionpublic void setTileServer(java.lang.Class<?> tileServer)
throws InitializeException
MultiresolutionsetTileServer in interface MultiresolutionInitializeExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class FLyrDefaultPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class FLyrDefaultPersistenceExceptionpublic static void registerPersistence()
public static void registerPersistence(DynStruct definition)
public GeometryType getGeometryType() throws ReadException
ClassifiablegetGeometryType in interface ClassifiableReadException - if there is an error getting the geometry typepublic void setDataStore(DataStore dataStore, java.lang.String domain) throws LoadLayerException
LoadLayerExceptionprotected void finalize()
finalize in class java.lang.Object