public class

ColormapRenderer

extends Object
implements RasterRenderer
java.lang.Object
   ↳ com.esri.core.renderer.ColormapRenderer

Class Overview

A Colormap renderer provides a discrete mapping of raster pixel values to colors. All pixels matching the specified value will be rendered using the mapped color. This can be useful for tasks such as land classification.

Summary

Public Constructors
ColormapRenderer()
Instantiates an empty ColormapRenderer, which can later have a Colormap set on it.
ColormapRenderer(Colormap cm)
Instantiates a ColormapRenderer with the provided Colormap
Public Methods
Colormap getColormap()
Gets the Colormap that this renderer will use to render the raster data
void setColormap(Colormap colormap)
Sets the Colormap that this renderer will use to render the raster data
String toJson()
Generates a json representation of the renderer.
Protected Methods
void toJson(JsonGenerator node)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.renderer.RasterRenderer

Public Constructors

public ColormapRenderer ()

Instantiates an empty ColormapRenderer, which can later have a Colormap set on it.

public ColormapRenderer (Colormap cm)

Instantiates a ColormapRenderer with the provided Colormap

Parameters
cm Colormap: the Colormap to set on the ColormapRenderer

Public Methods

public Colormap getColormap ()

Gets the Colormap that this renderer will use to render the raster data

Returns
Colormap the colormap that will be used to render the raster data

public void setColormap (Colormap colormap)

Sets the Colormap that this renderer will use to render the raster data

Parameters
colormap Colormap: the Colormap to use to render the raster data

public String toJson ()

Generates a json representation of the renderer.

Returns
String the json representation of the renderer
Throws
Exception

Protected Methods

protected void toJson (JsonGenerator node)

Parameters
node JsonGenerator
Throws
Exception