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 ColourSchemecolourSchemeprotected StringdataFieldNameprotected StringglyphIconNameprotected ColourableIconiconprotected 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 voiddrawIntoImage(BufferedImage image, PlottingDomainParams params, FeatureCatalogue catalogue)Draw the data into a suppliedBufferedImageSet<Drawable.NameAndRange>getFieldsWithScales()StringgetGlyphIconName()protected ColourableIcongetIcon(String name)protected voidreadInIcons()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:ImageLayerDraw the data into a suppliedBufferedImage- Specified by:
drawIntoImagein classImageLayer- Throws:
EdalException
-
supportedFeatureTypes
public Collection<Class<? extends Feature<?>>> supportedFeatureTypes()
- Specified by:
supportedFeatureTypesin classImageLayer
-
getFieldsWithScales
public Set<Drawable.NameAndRange> getFieldsWithScales()
- Specified by:
getFieldsWithScalesin 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.NameAndRangeobject 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.
-
-