|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.internal.value.LayerLegendInfoCollection
public class LayerLegendInfoCollection
This class contains a collection of LayerLegendInfo
instances with
one for each sublayer of the layer that this class came from. An instance of
this class can be created by calling fromJson(JsonParser, String)
with the appropriate initialised JsonParser and a service URL. More usually
though, an instance of this class will come from a call to getLegend() on a
layer.
Method Summary | |
---|---|
static LayerLegendInfoCollection |
fromJson(org.codehaus.jackson.JsonParser parser,
String url)
Create a new instance of this class with the given JsonParser. |
LayerLegendInfo |
getLayerLegendInfo(int layerId)
Gets the layer legend info that corresponds to the given sublayer id. |
List<LayerLegendInfo> |
getLayerLegendInfos()
Gets all the layer legend info instances |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public List<LayerLegendInfo> getLayerLegendInfos()
public LayerLegendInfo getLayerLegendInfo(int layerId)
layerId
- the sublayer id
public static LayerLegendInfoCollection fromJson(org.codehaus.jackson.JsonParser parser, String url) throws Exception
parser
- the parser initialised with JSON describing a service's legend
informationurl
- the url of the service
Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |