Interface PaletteSelectionHandler
-
- All Known Implementing Classes:
BaseWmsClient
,Godiva
public interface PaletteSelectionHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
autoAdjustPalette(String layerId)
Called when a user wants to automatically adjust the palette rangevoid
logScaleChanged(String layerId, boolean newIsLogScale)
Called when the linear/log scale setting has been changedvoid
paletteChanged(String layerId, String paletteName, String style, int nColorBands)
Called when the palette has changed in some wayvoid
scaleRangeChanged(String layerId, String scaleRange)
Called when the scale range has been adjustedvoid
setOpacity(String layerId, float opacity)
Called when the opacity of a layer is set
-
-
-
Method Detail
-
paletteChanged
void paletteChanged(String layerId, String paletteName, String style, int nColorBands)
Called when the palette has changed in some way- Parameters:
layerId
- The layer for which the palette has changedpaletteName
- The name of the palettestyle
- The name of the stylenColorBands
- The number of colour bands
-
scaleRangeChanged
void scaleRangeChanged(String layerId, String scaleRange)
Called when the scale range has been adjusted- Parameters:
layerId
- The layer for which the scale range has changedscaleRange
- A string representing the new scale range
-
logScaleChanged
void logScaleChanged(String layerId, boolean newIsLogScale)
Called when the linear/log scale setting has been changed- Parameters:
layerId
- The layer for which the linear/log setting has changednewIsLogScale
- true if the new state is logarithmic, false if it is linear
-
autoAdjustPalette
void autoAdjustPalette(String layerId)
Called when a user wants to automatically adjust the palette range- Parameters:
layerId
- The layer for which the palette should be adjusted
-
setOpacity
void setOpacity(String layerId, float opacity)
Called when the opacity of a layer is set- Parameters:
layerId
- The layer to set the opacity ofopacity
- The opacity as a float ranging from 0-1
-
-