public class

BlendRenderer

extends HillshadeRenderer
java.lang.Object
   ↳ com.esri.core.renderer.HillshadeRenderer
     ↳ com.esri.core.renderer.BlendRenderer

Class Overview

The BlendRenderer allows the user to specify elevation data for a raster that they are displaying, and allows a hillshade to be computed and blended with the original raster. This provides a look similar to the original raster, but with some terrain shading, giving it a rich, textured look.

Summary

[Expand]
Inherited Fields
From class com.esri.core.renderer.HillshadeRenderer
Public Constructors
BlendRenderer()
Creates an instance of BlendRenderer
Public Methods
RasterSource getElevationSource()
Gets the elevation source of the blend renderer.
double getGamma()
Gets the gamma used for blending.
double[] getMaxValues()
Gets the maximum values to use for blending.
double[] getMinValues()
Gets the minimum values to use for blending.
void setElevationSource(RasterSource elevationSource)
Sets the elevation source on the blend renderer.
void setGamma(double gamma)
Sets the gamma to use for blending.
void setMaxValues(double[] maxValues)
Sets the maximum values to use for blending.
void setMinValues(double[] minValues)
Sets the minimum values to use for blending.
String toJson()
Generates a json representation of the renderer
Protected Methods
void toJson(JsonGenerator node)
[Expand]
Inherited Methods
From class com.esri.core.renderer.HillshadeRenderer
From class java.lang.Object
From interface com.esri.core.renderer.RasterRenderer

Public Constructors

public BlendRenderer ()

Creates an instance of BlendRenderer

Public Methods

public RasterSource getElevationSource ()

Gets the elevation source of the blend renderer. This is the elevation data for the area you are displaying in a RasterLayer.

Returns
RasterSource the elevation data to use for blending

public double getGamma ()

Gets the gamma used for blending.

Returns
double the gamma used for blending

public double[] getMaxValues ()

Gets the maximum values to use for blending.

Returns
double[] the max values used for blending

public double[] getMinValues ()

Gets the minimum values to use for blending.

Returns
double[] the minValues used for blending

public void setElevationSource (RasterSource elevationSource)

Sets the elevation source on the blend renderer. This is the elevation data for the area you are displaying in a RasterLayer. Currently, only FileRasterSources are supported.

Parameters
elevationSource RasterSource: the elevation data to use for blending

public void setGamma (double gamma)

Sets the gamma to use for blending.

Parameters
gamma double: the gamma to use for blending

public void setMaxValues (double[] maxValues)

Sets the maximum values to use for blending.

Parameters
maxValues double: the maximum values to use for blending

public void setMinValues (double[] minValues)

Sets the minimum values to use for blending.

Parameters
minValues double: the minimum values to use for blending

public String toJson ()

Generates a json representation of the renderer

Returns
String a String containing the json representation of the renderer
Throws
Exception

Protected Methods

protected void toJson (JsonGenerator node)

Parameters
node JsonGenerator
Throws
Exception