com.esri.core.tasks.ags
Class GenerateRendererTask
java.lang.Object
com.esri.core.tasks.ags.GenerateRendererTask
public class GenerateRendererTask
- extends Object
This task is used to get a renderer from a map service's generateDataClasses REST end-point. The task requires the URL
of a single sub-layer in the map service, a classification definition and an optional where clause to restrict the
data to be classified.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenerateRendererTask
public GenerateRendererTask(String url,
UserCredentials credentials)
GenerateRendererTask
public GenerateRendererTask(String url)
execute
public Renderer<?> execute(GenerateRendererTaskParameters params)
throws Exception
- Synchronously request a renderer from the given map service sub-layer. This will be either a
ClassBreaksRenderer
or a UniqueValueRenderer
depending on the parameters provided.
- Parameters:
params
- the parameters
- Throws:
Exception
executeAsync
public void executeAsync(GenerateRendererTaskParameters params,
CallbackListener<Renderer<?>> callback)
- Asynchronously request a renderer from the given map service sub-layer. This will be either a
ClassBreaksRenderer
or a UniqueValueRenderer
depending on the classification definition provided (
ClassBreaksDefinition
or UniqueValueDefinition
respectively). The callback will return the
requested renderer when it is available.
- Parameters:
params
- the parameterscallback
- the callback used to retrieve the renderer
Copyright © 2012. All Rights Reserved.