public class

RGBRenderer

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

Class Overview

RGBRenderer can be applied to a RasterLayer created with multi band raster data. For a single band raster data, HillshadeRenderer might be a better fit.

Summary

Public Constructors
RGBRenderer()
Creates an instance of RGBRenderer
Public Methods
int[] getBandIds()
Gets the band ids used for rendering the red, green, and blue channels.
StretchParameters getStretchParameters()
Gets the StretchParameters applied to this renderer.
void setBandIds(int[] bandIds)
Sets the band ids to use for rendering the red, green, and blue channels.
void setStretchParameters(StretchParameters stretchParameters)
Sets the StretchParameters to apply to this renderer.
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 RGBRenderer ()

Creates an instance of RGBRenderer

Public Methods

public int[] getBandIds ()

Gets the band ids used for rendering the red, green, and blue channels. See setBandIds(int[]) for more information.

Returns
int[] the band ids used for rendering the red, green, and blue channels

public StretchParameters getStretchParameters ()

Gets the StretchParameters applied to this renderer.

Returns
StretchParameters the stretch parameters applied to this renderer

public void setBandIds (int[] bandIds)

Sets the band ids to use for rendering the red, green, and blue channels. This should be a three element array. The first element specifies which band should be considered the "red" channel, the second element specifies which band should be considered the "green" channel, and the third element specifies which band should be considered the "blue" channel.

Parameters
bandIds int: the band ids to use for rendering the red, green, and blue channels

public void setStretchParameters (StretchParameters stretchParameters)

Sets the StretchParameters to apply to this renderer. See StretchParameters for more details.

Parameters
stretchParameters StretchParameters: the stretch parameters to apply to this renderer

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