public class

LayerTimeOptions

extends Object
implements LayerInfoItem
java.lang.Object
   ↳ com.esri.core.map.LayerTimeOptions

Class Overview

This class defines time options for the layer with the given ID within a map service. This can be used to indicate whether or not the layer should use the time extent specified by the TimeInterval property or not, whether to draw the layer features cumulatively or not and the time offsets for the layer.

Summary

Public Constructors
LayerTimeOptions(int layerId)
Instantiates a new layer time options.
LayerTimeOptions(int layerId, TimeOptions timeOptions)
Instantiates a new layer time options.
Public Methods
int getId()
Gets the layer id.
TimeOptions getTimeOptions()
Gets the time options.
void setId(int layerId)
Sets the layer id.
void setTimeOptions(TimeOptions timeOptions)
Sets the time options.
void toJson(JsonGenerator node)
Create a JSON node within the given generator.
String toJson()
Create a JSON string that can be used to send instances of this class to a REST end point.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.map.LayerInfoItem

Public Constructors

public LayerTimeOptions (int layerId)

Instantiates a new layer time options.

Parameters
layerId int: the layer id

public LayerTimeOptions (int layerId, TimeOptions timeOptions)

Instantiates a new layer time options.

Parameters
layerId int: the layer id
timeOptions TimeOptions: the time options

Public Methods

public int getId ()

Gets the layer id.

Returns
int the id

public TimeOptions getTimeOptions ()

Gets the time options.

Returns
TimeOptions the time options

public void setId (int layerId)

Sets the layer id.

Parameters
layerId int: the new id

public void setTimeOptions (TimeOptions timeOptions)

Sets the time options.

Parameters
timeOptions TimeOptions: the new time options

public void toJson (JsonGenerator node)

Create a JSON node within the given generator.

Parameters
node JsonGenerator: the node
Throws
Exception the exception

public String toJson ()

Create a JSON string that can be used to send instances of this class to a REST end point.

Returns
String the string
Throws
Exception