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 interfaceImageLayer.MetadataFilterAn 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 BufferedImagedrawImage(PlottingDomainParams params, FeatureCatalogue catalogue)protected abstract voiddrawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue)Draw the data into a suppliedBufferedImageImageLayer.MetadataFiltergetMetadataFilter()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:
drawImagein 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.MetadataFilterto 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)
-
-