Interface StyleCatalogue
-
- All Known Implementing Classes:
SldTemplateStyleCatalogue
public interface StyleCatalogueA catalogue of supported styles for plotting. This allows for a catalogue of styles to be defined, and provides a method to turn these styles into concreteMapImageobjects ready to be plotted.- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MapImagegetMapImageFromStyle(String styleName, PlottingStyleParameters templateableProperties, VariableMetadata metadata, LayerNameMapper layerNameMapper)Returns a concreteMapImagefor a given styleList<String>getScaledRoleForStyle(String styleName)Collection<String>getSupportedStyles(VariableMetadata variableMetadata, LayerNameMapper layerNameMapper)Gets the supported styles for a given variablebooleanstyleUsesPalette(String styleName)
-
-
-
Method Detail
-
getSupportedStyles
Collection<String> getSupportedStyles(VariableMetadata variableMetadata, LayerNameMapper layerNameMapper)
Gets the supported styles for a given variable- Parameters:
variableMetadata- TheVariableMetadataof the variable to get styles forlayerNameMapper- TheLayerNameMapperused to map layer names to dataset/variable pairs.- Returns:
- A
Listof the supported style names for this variable
-
styleUsesPalette
boolean styleUsesPalette(String styleName)
- Parameters:
styleName- The style name to test- Returns:
trueif this style needs a colour palette
-
getScaledRoleForStyle
List<String> getScaledRoleForStyle(String styleName)
- Parameters:
styleName- The style name to test- Returns:
- The role which the scale range applies to. This is:
nullif no scaling takes place- An empty string if the named layer is scaled
- The child role which scaling is applied to TODO DOCUMENT MULTIPLE ROLES CASE
-
getMapImageFromStyle
MapImage getMapImageFromStyle(String styleName, PlottingStyleParameters templateableProperties, VariableMetadata metadata, LayerNameMapper layerNameMapper)
Returns a concreteMapImagefor a given style- Parameters:
styleName- The name of the styletemplateableProperties- The properties which should be injected into the style template. None of the methods in this object may returnnullmetadata- TheVariableMetadataof the variable being plotted. In the case that multiple variables are used for a single plot, this should be the parentVariableMetadataof all required variableslayerNameMapper- The associatedLayerNameMapper. This is used to turnVariableMetadataobjects into concrete layer names for the style template- Returns:
- A
MapImage, ready to generate images
-
-