public class

SimpleRenderer

extends BaseRenderer
java.lang.Object
   ↳ com.esri.core.renderer.BaseRenderer
     ↳ com.esri.core.renderer.SimpleRenderer

Class Overview

A simple renderer uses the same symbol for every graphic.

Summary

Constants
String TYPE The Constant TYPE.
[Expand]
Inherited Fields
From class com.esri.core.renderer.BaseRenderer
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(Feature feature)
Symbol getSymbol(Graphic graphic)
This method is deprecated. please use getSymbol(Feature)
int hashCode()
void setDescription(String description)
Sets the description.
void setLabel(String label)
Sets the label.
Protected Methods
String getType()
void toJson(JsonGenerator node)
[Expand]
Inherited Methods
From class com.esri.core.renderer.BaseRenderer
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 JsonNode: the node
Throws
Exception the exception

public SimpleRenderer (Symbol symbol)

Instantiates SimpleRenderer with a symbol.

Parameters
symbol Symbol: The graphic symbol.

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public String getDescription ()

Gets the description.

Returns
String the description.

public String getLabel ()

Gets the label.

Returns
String the label.

public Symbol getSymbol (Feature feature)

Parameters
feature Feature
Returns
Symbol

public Symbol getSymbol (Graphic graphic)

This method is deprecated.
please use getSymbol(Feature)

Gets the symbol for the given graphic.

Parameters
graphic Graphic: Graphic object.
Returns
Symbol Symbol object.

public int hashCode ()

Returns
int

public void setDescription (String description)

Sets the description.

Parameters
description String: the description to set

public void setLabel (String label)

Sets the label.

Parameters
label String: the label to set

Protected Methods

protected String getType ()

Returns
String

protected void toJson (JsonGenerator node)

Parameters
node JsonGenerator
Throws
Exception