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, properties
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 |
---|
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, visibleRequired
dispose, dispose
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMapContext, getMaxScale, getMinScale, getName, setMaxScale, setMinScale
addError, 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, visibleRequired
clear, clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
getExtendedProperties, getProperty, setProperty
public 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
- RasterNotLoadException
LoadLayerException
public void setName(java.lang.String name)
FLayer
setName
in interface FLayer
setName
in class FLyrDefault
name
- 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 FLyrDefault
public void load() throws LoadLayerException
FLayer
Executes 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 FLayer
load
in class FLyrDefault
LoadLayerException
- if fails loading the layer.FLayer.reload()
public void setLayerInitialized(boolean initialized)
FLyrRaster
setLayerInitialized
in interface FLyrRaster
public void init() throws LoadLayerException, FilePaletteException
public IProjection readProjection() throws RasterDriverException
FLyrRaster
readProjection
in interface FLyrRaster
RasterDriverException
public Render getRender()
getRender
in interface FLyrRaster
public java.net.URI getURI()
FLyrRaster
getURI
in interface FLyrRaster
public void setNoDataTransparent(boolean t)
FLyrRaster
setNoDataTransparent
in interface FLyrRaster
protected void initFilters() throws FilePaletteException
FilePaletteException
public boolean isReproyectable()
FLyrRaster
isReproyectable
in interface FLyrRaster
public void draw(java.awt.image.BufferedImage image, java.awt.Graphics2D g, ViewPort vp, Cancellable cancel, double scale) throws ReadException
FLayer
draw
in interface FLayer
draw
in interface FLyrRaster
image
- 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 scaleReadException
ReadDriverException
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)
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 FLayer
setProjection
in class FLyrDefault
proj
- Proyección.#isReprojectable()
,
#reProject(MapControl)
public void setProjection(IProjection proj, boolean persist)
FLyrRaster
setProjection
in interface FLyrRaster
public Envelope getFullEnvelope()
FLyrRaster
getFullEnvelope
in interface FLayer
getFullEnvelope
in interface FLyrRaster
public 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()
FLyrRaster
getAttributes
in interface FLyrRaster
public void print(java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintAttributes propeties) throws ReadException
FLayer
print
in interface FLayer
g
- 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 FLayer
removeLayerListener
in interface FLyrRaster
removeLayerListener
in class FLyrDefault
o
- LayerListener a borrar.FLayer.addLayerListener(LayerListener)
,
FLayer.getLayerListeners()
public boolean isRemoveRasterFlag()
isRemoveRasterFlag
in interface FLyrRaster
public void setRemoveRasterFlag(boolean removeRasterFlag)
FLyrRaster
setRemoveRasterFlag
in interface FLyrRaster
removeRasterFlag
- The removeRasterFlag to set.public java.lang.String getTocImageIcon()
FLayer
getTocImageIcon
in interface FLayer
getTocImageIcon
in class FLyrDefault
null
if there isn't anypublic int[] getTileSize()
FLyrRaster
getTileSize
in interface FLyrRaster
public boolean isTiled()
FLyrRaster
isTiled
in interface FLyrRaster
public boolean isGeoreferenced()
FLyrRaster
isGeoreferenced
in interface FLyrRaster
public NoData getNoDataValue()
FLyrRaster
getNoDataValue
in interface FLyrRaster
public void setNoDataValue(NoData nd)
setNoDataValue
in interface FLyrRaster
nd
- public double getWCHeight()
public double getWCWidth()
public long[] getFileSize()
public java.net.URI[] getUris()
public int getFileCount()
public java.lang.String getFileFormat()
FLyrRaster
getFileFormat
in interface FLyrRaster
public int[] getDataType()
public void setRenderFilterList(RasterFilterList filterList)
public DynObjectSet getInfo(Point p, double tolerance) 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
p
- 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.LoadLayerException
DataException
public java.lang.Object getInfo(java.lang.String key)
public int[] getBandCountFromDataset()
FLyrRaster
getBandCountFromDataset
in interface FLyrRaster
public java.lang.String getColorInterpretation(int band, int dataset)
FLyrRaster
getColorInterpretation
in interface FLyrRaster
public java.lang.String getWktProjection() throws RasterDriverException
FLyrRaster
getWktProjection
in interface FLyrRaster
RasterDriverException
public boolean isRGB()
FLyrRaster
isRGB
in interface FLyrRaster
public double getCellSize()
public Extent getFullRasterExtent()
FLyrRaster
getFullRasterExtent
in interface FLyrRaster
public 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()
FLyrRaster
existColorTable
in interface FLyrRaster
public boolean existsAlphaBand()
public int getAlphaBandNumber()
FLyrRaster
getAlphaBandNumber
in interface FLyrRaster
public void setLastLegend(ColorTable ct)
setLastLegend
in interface FLyrRaster
ct
- public ILegend getLegend()
getLegend
in interface Classifiable
public void addLegendListener(LegendListener listener)
Classifiable
addLegendListener
in interface Classifiable
addLegendListener
in class FLyrDefault
listener
- the legend listenerClassifiable.removeLegendListener(LegendListener)
public int getShapeType()
Classifiable
Returns 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 Classifiable
Geometry
,
Constant
public void removeLegendListener(LegendListener listener)
Classifiable
removeLegendListener
in interface Classifiable
removeLegendListener
in class FLyrDefault
listener
- the legend listenerLayerChangeSupport.removeLayerListener(LegendListener)
public boolean isInside(java.awt.geom.Point2D p)
FLyrRaster
isInside
in interface FLyrRaster
p
- Punto a calcularpublic java.awt.geom.AffineTransform getAffineTransform()
FLyrRaster
getAffineTransform
in interface FLyrRaster
public void setAffineTransform(java.awt.geom.AffineTransform transf)
FLyrRaster
setAffineTransform
in interface FLyrRaster
public void setAffineTransformWithoutHistorical(java.awt.geom.AffineTransform transf)
FLyrRaster
setAffineTransformWithoutHistorical
in interface FLyrRaster
public Historical getAffineTransformHistorical()
FLyrRaster
getAffineTransformHistorical
in interface FLyrRaster
public void saveGeoToRmf() throws RmfSerializerException
FLyrRaster
saveGeoToRmf
in interface FLyrRaster
RmfSerializerException
public boolean isActionEnabled(int action)
IRasterLayerActions
isActionEnabled
in interface IRasterLayerActions
action
- Acción definida en LayerActionSupportedpublic void setVisible(boolean visibility)
FLayer
Changes 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 FLayer
setVisible
in class FLyrDefault
visibility
- the boolean to be setFLayer.isVisible()
,
FLayer.visibleRequired()
,
FLayer.isAvailable()
public int getTransparency()
getTransparency
in class FLyrDefault
FLyrDefault.setTransparency(int)
public boolean isTransparent()
public void setTransparency(int trans)
setTransparency
in class FLyrDefault
valor
- de transparenciaFLyrDefault.getTransparency()
public java.util.List<ROI> getRois() throws ROIException
FLyrRaster
getRois
in interface FLyrRaster
ROIException
public void setRois(java.util.List<ROI> rois)
FLyrRaster
setRois
in interface FLyrRaster
public void setROIsFiles(java.util.List<java.io.File> file) throws RmfSerializerException
FLyrRaster
setROIsFiles
in interface FLyrRaster
RmfSerializerException
public java.util.List<java.io.File> getROIsFiles() throws RmfSerializerException
FLyrRaster
getROIsFiles
in interface FLyrRaster
RmfSerializerException
public 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
FLayer
Tries 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 FLayer
reload
in class FLyrDefault
ReloadLayerException
- 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)
VisualPropertyListener
visualPropertyValueChanged
in interface VisualPropertyListener
public java.awt.geom.Point2D adjustWorldRequest(java.awt.geom.Point2D req)
FLyrRaster
adjustWorldRequest
in interface FLyrRaster
req
- Punto a ajustar dentro del extener del rasterpublic void setExplorer(RasterDataServerExplorer explorer)
explorer
- public RasterDataServerExplorer getExplorer()
public FLayer cloneLayer() throws java.lang.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 FLyrDefault
java.lang.Exception
- any exception produced during the cloning of this layer.protected DefaultFLyrRaster cloneLayer0() throws java.lang.Exception
java.lang.Exception
protected DefaultFLyrRaster cloneLayer1(DefaultFLyrRaster newLayer) throws java.lang.Exception
java.lang.Exception
public FLayer getFileLayer() throws RasterDriverException
FLyrRaster
getFileLayer
in interface FLyrRaster
RasterDriverException
public void addFile(java.io.File file) throws InvalidSourceException
FLyrRaster
addFile
in interface FLyrRaster
InvalidSourceException
public void removeFile(java.io.File file)
FLyrRaster
removeFile
in interface FLyrRaster
public void disableStopped()
ILayerState
disableStopped
in interface ILayerState
public void enableAwake() throws NotAvailableStateException
ILayerState
enableAwake
in interface ILayerState
NotAvailableStateException
- Excepción lanzada si no es posible alcanzar el estadopublic void enableClosed() throws NotAvailableStateException
ILayerState
enableClosed
in interface ILayerState
NotAvailableStateException
- Excepción lanzada si no es posible alcanzar el estadopublic void enableOpen() throws NotAvailableStateException
ILayerState
enableOpen
in interface ILayerState
NotAvailableStateException
- Excepción lanzada si no es posible alcanzar el estadopublic void enableStopped()
ILayerState
enableStopped
in interface ILayerState
public boolean isAwake()
ILayerState
isAwake
in interface ILayerState
public boolean isClosed()
ILayerState
isClosed
in interface ILayerState
public boolean isOpen()
ILayerState
isOpen
in interface ILayerState
public boolean isStopped()
ILayerState
isStopped
in interface ILayerState
public java.util.Set getMetadataChildren()
Metadata
getMetadataChildren
in interface Metadata
public java.lang.Object getMetadataID()
Metadata
getMetadataID
in interface Metadata
public java.lang.String getMetadataName()
Metadata
getMetadataName
in interface Metadata
getMetadataName
in class FLyrDefault
public RasterDataStore getDataStore()
FLyrRaster
getDataStore
in interface HasDataStore
getDataStore
in interface SingleLayer
getDataStore
in interface FLyrRaster
public IProjection getProjection()
Projected
Returns the current projection.
getProjection
in interface Projected
getProjection
in interface FLyrRaster
getProjection
in class FLyrDefault
Projected.reProject(ICoordTrans)
public void setOpenRasterStore(DataStore dataStore) throws LoadLayerException
LoadLayerException
public void setDataStore(DataStore dataStore) throws LoadLayerException
SingleLayer
setDataStore
in interface SingleLayer
dataStore
- a usar en la capa.LoadLayerException
public boolean isRemote()
FLyrRaster
isRemote
in interface FLyrRaster
public boolean isReadingData()
public void setReadingData(java.lang.String readingData)
setReadingData
in interface FLyrRaster
readingData
- public DynObjectSet getInfo(java.awt.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
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 DynObjectSet getInfo(java.awt.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
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
- TODOprotected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDisposable
BaseException
AbstractDisposable.dispose()
public int getZoomLevel()
Multiresolution
getZoomLevel
in interface Multiresolution
public void setZoomLevel(int zoomLevel)
Multiresolution
setZoomLevel
in interface Multiresolution
public boolean increaseZoomLevel()
Multiresolution
increaseZoomLevel
in interface Multiresolution
public boolean decreaseZoomLevel()
Multiresolution
decreaseZoomLevel
in interface Multiresolution
public Envelope getCoordsInLevel(java.awt.geom.Point2D center, int level, int w, int h) throws CreateEnvelopeException
Multiresolution
getCoordsInLevel
in interface Multiresolution
center
- center in world coordinateslevel
- level of resolutionw
- width in pixelsh
- height in pixelsCreateEnvelopeException
public boolean isEnabledMultiresolution()
Multiresolution
isEnabledMultiresolution
in interface Multiresolution
public void setTileServer(java.lang.Class<?> tileServer) throws InitializeException
Multiresolution
setTileServer
in interface Multiresolution
InitializeException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class FLyrDefault
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class FLyrDefault
PersistenceException
public static void registerPersistence()
public static void registerPersistence(DynStruct definition)
public GeometryType getGeometryType() throws ReadException
Classifiable
getGeometryType
in interface Classifiable
ReadException
- if there is an error getting the geometry typepublic void setDataStore(DataStore dataStore, java.lang.String domain) throws LoadLayerException
LoadLayerException
protected void finalize()
finalize
in class java.lang.Object