public class

GenerateRendererTask

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.ags.GenerateRendererTask

Class Overview

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.

Summary

Public Constructors
GenerateRendererTask(String url, UserCredentials credentials)
GenerateRendererTask(String url)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GenerateRendererTask (String url, UserCredentials credentials)

Parameters
url String
credentials UserCredentials

public GenerateRendererTask (String url)

Parameters
url String

Public Methods

public Renderer execute (GenerateRendererTaskParameters params)

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. Performs a network request on the current thread, so do not call this from the UI thread.

Parameters
params GenerateRendererTaskParameters: the parameters
Returns
Renderer Renderer object
Throws
Exception

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. The callback will return the requested renderer when it is available.

Parameters
params GenerateRendererTaskParameters: the parameters
callback CallbackListener: the callback used to retrieve the renderer