Class ColouredTrajectoryLayer
- 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.ColouredTrajectoryLayer
-
public class ColouredTrajectoryLayer 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
-
-
Constructor Summary
Constructors Constructor Description ColouredTrajectoryLayer(String dataFieldName, 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
ColourScheme
getColourScheme()
String
getDataFieldName()
Set<Drawable.NameAndRange>
getFieldsWithScales()
void
setColourScheme(ColourScheme colourScheme)
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
-
-
-
-
Constructor Detail
-
ColouredTrajectoryLayer
public ColouredTrajectoryLayer(String dataFieldName, ColourScheme colourScheme)
-
-
Method Detail
-
getDataFieldName
public String getDataFieldName()
-
getColourScheme
public ColourScheme getColourScheme()
-
setColourScheme
public void setColourScheme(ColourScheme colourScheme)
-
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
.
-
-