Class ColouredGlyphLayer
- 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.ColouredGlyphLayer
-
public class ColouredGlyphLayer extends ImageLayer
-
-
Nested Class Summary
-
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
-
-
Field Summary
Fields Modifier and Type Field Description protected ColourScheme
colourScheme
protected String
dataFieldName
protected String
glyphIconName
protected ColourableIcon
icon
protected Map<String,ColourableIcon>
icons
-
Constructor Summary
Constructors Constructor Description ColouredGlyphLayer(String dataFieldName, String glyphIconName, ColourScheme colourScheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
drawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue)
Draw the data into a suppliedBufferedImage
Set<Drawable.NameAndRange>
getFieldsWithScales()
String
getGlyphIconName()
protected ColourableIcon
getIcon(String name)
protected void
readInIcons()
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
getOpacityTransform, setOpacityTransform
-
-
-
-
Field Detail
-
dataFieldName
protected String dataFieldName
-
glyphIconName
protected String glyphIconName
-
colourScheme
protected ColourScheme colourScheme
-
icons
protected Map<String,ColourableIcon> icons
-
icon
protected ColourableIcon icon
-
-
Constructor Detail
-
ColouredGlyphLayer
public ColouredGlyphLayer(String dataFieldName, String glyphIconName, ColourScheme colourScheme)
-
-
Method Detail
-
getGlyphIconName
public String getGlyphIconName()
-
readInIcons
protected void readInIcons()
-
getIcon
protected ColourableIcon getIcon(String name)
-
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
-
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
.
-
-