public static class

Colormap.UniqueValue

extends Object
java.lang.Object
   ↳ com.esri.core.renderer.Colormap.UniqueValue

Class Overview

A UniqueValue of a Colormap refers to a single pixel value to color mapping. Each unique value has a pixel value, and the color that all raster pixels with that value should be rendered as. It also has a label. The label is useful for describing what the UniqueValue represents, such as "Water", "Grass", or "Urban Development".

Summary

Public Constructors
Colormap.UniqueValue(int pixelValue, int color, String label)
Creates a UniqueValue with the specified mapping and label
Public Methods
int getColor()
Gets the color for this UniqueValue (which will be applied to all pixels with the specified pixelValue).
String getLabel()
Gets the label for this UniqueValue.
int getPixelValue()
Gets the pixel value for this UniqueValue.
void setColor(int color)
Sets the color for this UniqueValue (which will be applied to all pixels with the specified pixelValue).
void setLabel(String label)
Sets the label for this UniqueValue.
void setPixelValue(int pixelValue)
Sets the pixel value for this UniqueValue.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Colormap.UniqueValue (int pixelValue, int color, String label)

Creates a UniqueValue with the specified mapping and label

Parameters
pixelValue int: The pixel value to map the color to
color int: The color to render pixels with the specified value to
label String: The label for this mapping

Public Methods

public int getColor ()

Gets the color for this UniqueValue (which will be applied to all pixels with the specified pixelValue).

Returns
int the color to map to this UniqueValue's pixelValue.

public String getLabel ()

Gets the label for this UniqueValue.

Returns
String the label for this UniqueValue

public int getPixelValue ()

Gets the pixel value for this UniqueValue.

Returns
int the pixelValue for this UniqueValue

public void setColor (int color)

Sets the color for this UniqueValue (which will be applied to all pixels with the specified pixelValue).

Parameters
color int: the color to map to this UniqueValue's pixelValue

public void setLabel (String label)

Sets the label for this UniqueValue.

Parameters
label String: the label to set for this UniqueValue

public void setPixelValue (int pixelValue)

Sets the pixel value for this UniqueValue.

Parameters
pixelValue int: the pixelValue to set for this UniqueValue