public class

Legend

extends Object
java.lang.Object
   ↳ com.esri.core.map.Legend

Class Overview

The Legend class provides a legend's symbol and label.

Summary

Public Constructors
Legend()
Creates a Legend object.
Legend(Bitmap image, String label)
Creates a Legend object.
Public Methods
static Legend fromJson(JsonParser parser)
From json.
String getContentType()
Return the content type.
Bitmap getImage()
Returns the legend's image.
String getLabel()
Returns the legend's label.
List<String> getValues()
Return legend values.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Legend ()

Creates a Legend object.

public Legend (Bitmap image, String label)

Creates a Legend object.

Parameters
image Bitmap: the legend's symbol
label String: the legend's label

Public Methods

public static Legend fromJson (JsonParser parser)

From json.

Parameters
parser JsonParser: the parser
Returns
Legend the legend
Throws
Exception the exception

public String getContentType ()

Return the content type.

Returns
String the contentType

public Bitmap getImage ()

Returns the legend's image.

Returns
Bitmap the legend's image

public String getLabel ()

Returns the legend's label.

Returns
String the legend's label

public List<String> getValues ()

Return legend values.

Returns
List<String> the values