Class ColormapRenderer


  • public final class ColormapRenderer
    extends RasterRenderer
    Defines a renderer that uses a color map. This renderer can be used when you want the values in the raster layer to be represented by a specified color.
    Since:
    100.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      ColormapRenderer​(Colormap colormap)
      Creates a renderer based on a color map.
      ColormapRenderer​(java.util.List<java.lang.Integer> colors)
      Creates a renderer based on a color map.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Colormap getColormap()
      Gets the color map for this renderer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColormapRenderer

        public ColormapRenderer​(java.util.List<java.lang.Integer> colors)
        Creates a renderer based on a color map.
        Parameters:
        colors - the colors for this renderer, the color at the 0th index is used for raster pixels that have a value of 0, color at 1st index for value 1, and so on
        Throws:
        java.lang.IllegalArgumentException - if colors is null
        Since:
        100.0.0
      • ColormapRenderer

        public ColormapRenderer​(Colormap colormap)
        Creates a renderer based on a color map.
        Parameters:
        colormap - the color map for this renderer
        Throws:
        java.lang.IllegalArgumentException - if colormap is null
        Since:
        100.4.0
    • Method Detail

      • getColormap

        public Colormap getColormap()
        Gets the color map for this renderer.
        Returns:
        the color map
        Since:
        100.4.0