public interface FLyrRaster extends FLayer
METADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME| Modifier and Type | Method and Description |
|---|---|
void |
addFile(java.io.File file)
Adds a new file.
|
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()
Clones this layer
|
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort vp,
Cancellable cancel,
double scale)
Draws the layer using a buffer.
|
boolean |
existColorTable()
Returns true if a color table exists
|
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
|
java.lang.String |
getColorInterpretation(int band,
int dataset)
Gets the color interpretation
|
RasterDataStore |
getDataStore()
Gets the DataStore
|
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
|
Envelope |
getFullEnvelope()
Returns the full bounding box of this layer
|
Extent |
getFullRasterExtent()
Gets the full extent
|
MapContext |
getMapContext()
Gets the MapContext object
|
double |
getMaxScale()
Returns the maximum scale visible.
|
double |
getMinScale()
Returns the minimum scale visible.
|
java.lang.String |
getName()
Returns the name of this layer.
|
NoData |
getNoDataValue()
Obtiene el valor NoData asociado al raster.
|
IProjection |
getProjection()
Gets the projection
|
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[] |
getTileSize()
Gets the tile size
|
java.net.URI |
getURI()
Gets the uniform resource identifier
|
java.lang.String |
getWktProjection()
Gets the projection in well known text format
|
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 |
isRemote()
Returns true if this layer is remote
|
boolean |
isRemoveRasterFlag() |
boolean |
isReproyectable()
Devuelve si es reproyectable o no la capa
|
boolean |
isRGB()
Metodo para consultar si una capa puede ser un RGB.
|
boolean |
isTiled()
Returns true if the drawn is going to be tiled
|
IProjection |
readProjection()
Obtiene la proyección del fichero.
|
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 |
saveGeoToRmf()
Salva la georreferenciación a fichero rmf.
|
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.
|
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 |
setMaxScale(double maxScale)
Sets the maximum scale visible.
|
void |
setMinScale(double minScale)
Sets the minimum scale visible.
|
void |
setNoDataTransparent(boolean t)
When this flag is true then renderice nodata value as transparent
|
void |
setNoDataValue(NoData noDataValue)
Sets the nodata value for this layer
|
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 |
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.
|
addError, addLayerListener, allowLinks, getCoordTrans, getDefaultTolerance, getDrawVersion, getError, getErrors, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getNumErrors, getParentLayer, getTocImageIcon, getTocStatusImage, invalidate, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, load, newComposedLayer, print, reload, setActive, setAvailable, setCoordTrans, setEditing, setError, setFLayerStatus, setInTOC, setName, setParentLayer, setProjection, setTemporary, setVisible, visibleRequiredloadFromState, saveToStategetMetadataChildren, getMetadataID, getMetadataNameclear, clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposegetExtendedProperties, getProperty, setPropertyvoid setLayerInitialized(boolean initialized)
initialized - java.net.URI getURI()
boolean existColorTable()
void setLastLegend(ColorTable ct)
ct - Render getRender()
MapContext getMapContext()
getMapContext in interface FLayerExtent getFullRasterExtent()
RasterDataStore getDataStore()
boolean isRGB()
boolean isTiled()
java.util.List<ROI> getRois() throws ROIException
ROIExceptionvoid setRois(java.util.List<ROI> rois)
void setROIsFiles(java.util.List<java.io.File> file)
throws RmfSerializerException
file - RmfSerializerExceptionjava.util.List<java.io.File> getROIsFiles()
throws RmfSerializerException
RmfSerializerExceptionIProjection readProjection() throws RasterDriverException
RasterDriverExceptionint[] getTileSize()
NoData getNoDataValue()
java.lang.String getFileFormat()
boolean isGeoreferenced()
int[] getBandCountFromDataset()
java.lang.String getWktProjection()
throws RasterDriverException
RasterDriverExceptionjava.lang.String getColorInterpretation(int band,
int dataset)
band - dataset - void setReadingData(java.lang.String readingData)
readingData - void setNoDataValue(NoData noDataValue)
noDataValue - the noDataValue to setvoid setMinScale(double minScale)
setMinScale in interface FLayerminScale - the scale > 0, -1 if not definedgetMinScale()void setMaxScale(double maxScale)
setMaxScale in interface FLayermaxScale - the scale > 0, -1 if not definedgetMaxScale()double getMaxScale()
getMaxScale in interface FLayersetMaxScale(double)double getMinScale()
getMinScale in interface FLayersetMinScale(double)boolean isRemoveRasterFlag()
void setRemoveRasterFlag(boolean removeRasterFlag)
removeRasterFlag - The removeRasterFlag to set.boolean removeLayerListener(LayerListener o)
removeLayerListener in interface FLayero - LayerListener a borrar.FLayer.addLayerListener(LayerListener),
FLayer.getLayerListeners()void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort vp,
Cancellable cancel,
double scale)
throws ReadException
FLayerdraw in interface FLayerimage - 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)FLayer cloneLayer() throws java.lang.Exception
cloneLayer in interface FLayerjava.lang.ExceptionFLayer getFileLayer() throws RasterDriverException
RasterDriverExceptionint getAlphaBandNumber()
java.lang.String getName()
FLayergetName in interface FLayerFLayer.setName(String)IProjection getProjection()
getProjection in interface ProjectedProjected.reProject(ICoordTrans)boolean isReproyectable()
java.awt.geom.AffineTransform getAffineTransform()
Historical getAffineTransformHistorical()
void setAffineTransform(java.awt.geom.AffineTransform transf)
transf - void setAffineTransformWithoutHistorical(java.awt.geom.AffineTransform transf)
transf - void saveGeoToRmf()
throws RmfSerializerException
fName - RmfSerializerExceptionboolean isInside(java.awt.geom.Point2D p)
p - Punto a calcularboolean isRemote()
java.util.ArrayList<java.lang.Object> getAttributes()
Envelope getFullEnvelope()
getFullEnvelope in interface FLayerjava.awt.geom.Point2D adjustWorldRequest(java.awt.geom.Point2D req)
req - Punto a ajustar dentro del extener del rastervoid addFile(java.io.File file)
throws InvalidSourceException
file - InvalidSourceExceptionvoid removeFile(java.io.File file)
file - void setNoDataTransparent(boolean t)
t - void setProjection(IProjection proj, boolean persist) throws RmfSerializerException
proj - RmfSerializerException