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
AnImageLayer
which handles a singleGridFeature
for every layer name.- Author:
- Guy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
GriddedImageLayer.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 void
drawIntoImage(BufferedImage image, GriddedImageLayer.MapFeatureDataReader dataReader)
Draws the data into the supplied image.protected void
drawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue)
Draw the data into a suppliedBufferedImage
Collection<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:ImageLayer
Draw the data into a suppliedBufferedImage
- Specified by:
drawIntoImage
in classImageLayer
- Throws:
EdalException
-
supportedFeatureTypes
public Collection<Class<? extends Feature<?>>> supportedFeatureTypes()
- Specified by:
supportedFeatureTypes
in classImageLayer
-
drawIntoImage
protected abstract void drawIntoImage(BufferedImage image, GriddedImageLayer.MapFeatureDataReader dataReader) throws EdalException
Draws the data into the supplied image.- Parameters:
image
- ABufferedImage
to draw intodataReader
- AGriddedImageLayer.MapFeatureDataReader
which is used to obtain the actual data values and domain. TheMapDomain
returned 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
-
-