com.esri.core.internal.value
Class LayerLegendInfo

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

public class LayerLegendInfo
extends Object

This class contains legend information for a single sublayer of a map service.


Method Summary
static LayerLegendInfo fromJson(org.codehaus.jackson.JsonParser parser, String url)
          Create a new instance.
 int getLayerId()
          Gets the layer id for the corresponding sublayer.
 String getLayerName()
          Gets the layer name.
 String getLayerType()
          Gets the layer type.
 List<LegendItemInfo> getLegendItemInfos()
          Gets the list of legend item info instances.
 double getMaxScale()
          Gets the max scale the corresponding sublayer is visible at.
 double getMinScale()
          Gets the min scale the corresponding sublayer is visible at.
 String getServiceUrl()
          Gets the service url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLayerName

public String getLayerName()
Gets the layer name.

Returns:
the layerName

getLayerType

public String getLayerType()
Gets the layer type.

Returns:
the layerType

getLegendItemInfos

public List<LegendItemInfo> getLegendItemInfos()
Gets the list of legend item info instances.

Returns:
the legendItemInfos

getMaxScale

public double getMaxScale()
Gets the max scale the corresponding sublayer is visible at.

Returns:
the maxScale

getMinScale

public double getMinScale()
Gets the min scale the corresponding sublayer is visible at.

Returns:
minimum scale

getLayerId

public int getLayerId()
Gets the layer id for the corresponding sublayer.

Returns:
the layerId

getServiceUrl

public String getServiceUrl()
Gets the service url.

Returns:
the parent service's URL

fromJson

public static LayerLegendInfo fromJson(org.codehaus.jackson.JsonParser parser,
                                       String url)
                                throws Exception
Create a new instance.

Parameters:
parser - the parser
url - the url
Returns:
the layer legend info
Throws:
Exception - the exception


Copyright © 2012. All Rights Reserved.