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 the legend's symbol
label the legend's label

Public Methods

public static Legend fromJson (JsonParser parser)

From json.

Parameters
parser the parser
Returns
  • the legend
Throws
Exception the exception

public String getContentType ()

Return the content type.

Returns
  • the contentType

public Bitmap getImage ()

Returns the legend's image.

Returns
  • the legend's image

public String getLabel ()

Returns the legend's label.

Returns
  • the legend's label

public List<String> getValues ()

Return legend values.

Returns
  • the values