Class ImageLayer
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.style.Drawable
-
- uk.ac.rdg.resc.edal.graphics.style.ImageLayer
-
- Direct Known Subclasses:
ColouredGlyphLayer
,ColouredTrajectoryLayer
,GriddedImageLayer
public abstract class ImageLayer extends Drawable
Abstract class representing a layer within an image.- Author:
- Guy Griffiths
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ImageLayer.MetadataFilter
An interface used to filter metadata for plotting.-
Nested classes/interfaces inherited from class uk.ac.rdg.resc.edal.graphics.style.Drawable
Drawable.NameAndRange
-
-
Constructor Summary
Constructors Constructor Description ImageLayer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BufferedImage
drawImage(PlottingDomainParams params, FeatureCatalogue catalogue)
protected abstract void
drawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue)
Draw the data into a suppliedBufferedImage
ImageLayer.MetadataFilter
getMetadataFilter()
abstract Collection<Class<? extends Feature<?>>>
supportedFeatureTypes()
-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.Drawable
getFieldsWithScales, getOpacityTransform, setOpacityTransform
-
-
-
-
Method Detail
-
drawImage
public BufferedImage drawImage(PlottingDomainParams params, FeatureCatalogue catalogue) throws EdalException
- Specified by:
drawImage
in classDrawable
- Throws:
EdalException
-
drawIntoImage
protected abstract void drawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue) throws EdalException
Draw the data into a suppliedBufferedImage
- Parameters:
image
-params
-catalogue
-- Throws:
EdalException
-
supportedFeatureTypes
public abstract Collection<Class<? extends Feature<?>>> supportedFeatureTypes()
-
getMetadataFilter
public ImageLayer.MetadataFilter getMetadataFilter()
- Returns:
- A
ImageLayer.MetadataFilter
to filter certain types of data for plotting. The default behaviour is to allow all (supported) layers to be plotted. This is essentially an exclusionary filter which users can implement (e.g. for disallowing directional fields from being plotted as rasters)
-
-