Interface PaletteSelectionHandler

  • All Known Implementing Classes:
    BaseWmsClient, Godiva

    public interface PaletteSelectionHandler
    • 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 changed
        paletteName - The name of the palette
        style - The name of the style
        nColorBands - 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 changed
        scaleRange - 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 changed
        newIsLogScale - 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 of
        opacity - The opacity as a float ranging from 0-1