com.esri.core.tasks.ags
Class GenerateRendererTask

java.lang.Object
  extended by 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.


Constructor Summary
GenerateRendererTask(String url)
           
GenerateRendererTask(String url, UserCredentials credentials)
           
 
Method Summary
 Renderer<?> execute(GenerateRendererTaskParameters params)
          Synchronously request a renderer from the given map service sub-layer.
 void executeAsync(GenerateRendererTaskParameters params, CallbackListener<Renderer<?>> callback)
          Asynchronously request a renderer from the given map service sub-layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateRendererTask

public GenerateRendererTask(String url,
                            UserCredentials credentials)

GenerateRendererTask

public GenerateRendererTask(String url)
Method Detail

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 parameters
callback - the callback used to retrieve the renderer


Copyright © 2012. All Rights Reserved.