Class GriddedImageLayer
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.style.Drawable
-
- uk.ac.rdg.resc.edal.graphics.style.ImageLayer
-
- uk.ac.rdg.resc.edal.graphics.style.GriddedImageLayer
-
- Direct Known Subclasses:
ArrowLayer,ConfidenceIntervalLayer,ContourLayer,OpacityTransform,Raster2DLayer,RasterLayer,RasterRGBLayer,SizedArrowLayer,StippleLayer
public abstract class GriddedImageLayer extends ImageLayer
AnImageLayerwhich handles a singleGridFeaturefor every layer name.- Author:
- Guy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classGriddedImageLayer.MapFeatureDataReader-
Nested classes/interfaces inherited from class uk.ac.rdg.resc.edal.graphics.style.ImageLayer
ImageLayer.MetadataFilter
-
Nested classes/interfaces inherited from class uk.ac.rdg.resc.edal.graphics.style.Drawable
Drawable.NameAndRange
-
-
Constructor Summary
Constructors Constructor Description GriddedImageLayer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddrawIntoImage(BufferedImage image, GriddedImageLayer.MapFeatureDataReader dataReader)Draws the data into the supplied image.protected voiddrawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue)Draw the data into a suppliedBufferedImageCollection<Class<? extends Feature<?>>>supportedFeatureTypes()-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.ImageLayer
drawImage, getMetadataFilter
-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.Drawable
getFieldsWithScales, getOpacityTransform, setOpacityTransform
-
-
-
-
Method Detail
-
drawIntoImage
protected void drawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue) throws EdalException
Description copied from class:ImageLayerDraw the data into a suppliedBufferedImage- Specified by:
drawIntoImagein classImageLayer- Throws:
EdalException
-
supportedFeatureTypes
public Collection<Class<? extends Feature<?>>> supportedFeatureTypes()
- Specified by:
supportedFeatureTypesin classImageLayer
-
drawIntoImage
protected abstract void drawIntoImage(BufferedImage image, GriddedImageLayer.MapFeatureDataReader dataReader) throws EdalException
Draws the data into the supplied image.- Parameters:
image- ABufferedImageto draw intodataReader- AGriddedImageLayer.MapFeatureDataReaderwhich is used to obtain the actual data values and domain. TheMapDomainreturned will match the size of the image, and pixels are georeferenced to the GridCell2Ds which comprise the domain- Throws:
EdalException- If there is a problem reading the data or drawing into the image
-
-