com.esri.core.internal.value
Class LegendItemInfo

java.lang.Object
  extended by com.esri.core.internal.value.LegendItemInfo

public class LegendItemInfo
extends Object

This class represents a single legend item which consists of an image and a label.


Method Summary
static LegendItemInfo fromJson(org.codehaus.jackson.JsonParser parser, LayerLegendInfo parentLegendInfo)
          Create an instance of this class with a JsonParser initialised with the correct JSON string.
 String getContentType()
          Gets the content type.
 byte[] getImageBytes()
          Gets the image bytes.
 String getImageUrl()
          Gets the image url.
 String getLabel()
          Gets the label.
 ArrayList<String> getValues()
          Gets the values associated with this legend item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLabel

public String getLabel()
Gets the label.

Returns:
the label

getImageUrl

public String getImageUrl()
Gets the image url. This will always be the full url.

Returns:
the imageUrl

getImageBytes

public byte[] getImageBytes()
Gets the image bytes. The bytes are base64 encoded.

Returns:
the base64 encoded image bytes.

getContentType

public String getContentType()
Gets the content type.

Returns:
the contentType

getValues

public ArrayList<String> getValues()
Gets the values associated with this legend item. For class breaks renderers this will contain the maximum value for the class. For unique value renderers this will contain a list of all the values associated with this item.

Returns:
the values

fromJson

public static LegendItemInfo fromJson(org.codehaus.jackson.JsonParser parser,
                                      LayerLegendInfo parentLegendInfo)
                               throws Exception
Create an instance of this class with a JsonParser initialised with the correct JSON string.

Parameters:
parser - the parser
parentLegendInfo - the parent legend info
Returns:
the legend item info
Throws:
Exception - the exception


Copyright © 2012. All Rights Reserved.