public class

SimpleRenderer

extends Object
implements Renderer<V>
java.lang.Object
   ↳ com.esri.core.renderer.SimpleRenderer

Class Overview

A simple renderer uses the same symbol for every graphic.

Summary

Constants
String TYPE The Constant TYPE.
Public Constructors
SimpleRenderer(JsonNode node)
Instantiates SimpleRenderer from a Json node object.
SimpleRenderer(Symbol symbol)
Instantiates SimpleRenderer with a symbol.
Public Methods
boolean equals(Object obj)
String getDescription()
Gets the description.
String getLabel()
Gets the label.
Symbol getSymbol(Graphic graphic)
Gets the symbol for the given graphic.
int hashCode()
void setDescription(String description)
Sets the description.
void setLabel(String label)
Sets the label.
String toJson()
Serializes the properties into a JSON String representation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.renderer.Renderer

Constants

public static final String TYPE

The Constant TYPE.

Constant Value: "simple"

Public Constructors

public SimpleRenderer (JsonNode node)

Instantiates SimpleRenderer from a Json node object.

Parameters
node the node
Throws
Exception the exception

public SimpleRenderer (Symbol symbol)

Instantiates SimpleRenderer with a symbol.

Parameters
symbol The graphic symbol.

Public Methods

public boolean equals (Object obj)

public String getDescription ()

Gets the description.

Returns
  • the description.

public String getLabel ()

Gets the label.

Returns
  • the label.

public Symbol getSymbol (Graphic graphic)

Gets the symbol for the given graphic.

Parameters
graphic Graphic object.
Returns
  • Symbol object.

public int hashCode ()

public void setDescription (String description)

Sets the description.

Parameters
description the description to set

public void setLabel (String label)

Sets the label.

Parameters
label the label to set

public String toJson ()

Serializes the properties into a JSON String representation.

Returns
  • the string
Throws
Exception the exception