Class OpacityMap
- 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
-
- uk.ac.rdg.resc.edal.graphics.style.OpacityTransform
-
- uk.ac.rdg.resc.edal.graphics.style.OpacityMap
-
public class OpacityMap extends OpacityTransform
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class uk.ac.rdg.resc.edal.graphics.style.GriddedImageLayer
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 OpacityMap(String dataFieldName, DensityMap opacityMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyOpacityToImage(BufferedImage image, GriddedImageLayer.MapFeatureDataReader dataReader)
Set<Drawable.NameAndRange>
getFieldsWithScales()
-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.OpacityTransform
blendPixel, drawIntoImage
-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.GriddedImageLayer
drawIntoImage, 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
getOpacityTransform, setOpacityTransform
-
-
-
-
Constructor Detail
-
OpacityMap
public OpacityMap(String dataFieldName, DensityMap opacityMap)
-
-
Method Detail
-
applyOpacityToImage
protected void applyOpacityToImage(BufferedImage image, GriddedImageLayer.MapFeatureDataReader dataReader) throws EdalException
- Specified by:
applyOpacityToImage
in classOpacityTransform
- Throws:
EdalException
-
getFieldsWithScales
public Set<Drawable.NameAndRange> getFieldsWithScales()
- Specified by:
getFieldsWithScales
in classDrawable
- Returns:
- A list of all the fields used in this image layer, and their
appropriate scale ranges. If there is NO scale range there can be
NO data field and vice versa - i.e. a
Drawable.NameAndRange
object must have all non-null fields. If the layer doesn't depend on any data, this should return an empty set. It should never returnnull
.
-
-