Class: Renderer

Description

Class added v1.4.
dojo.require("esri.renderer");

Base class for the renderers - SimpleRenderer, ClassBreaksRenderer, UniqueValueRenderer. The base class for all renderers used with a GraphicsLayer. Renderer has no constructor. Use SimpleRenderer, ClassBreaksRenderer, or UniqueValueRenderer.

Samples

Search for samples that use this class.  

Class hierarchy

esri.renderer.Renderer

Subclasses

ClassBreaksRenderer  SimpleRenderer  UniqueValueRenderer  

Properties

Property Type Description
defaultSymbol Symbol Default symbol used when a value or break cannot be matched.

Methods

Method Return Value Description
getSymbol(graphic) Symbol Gets the symbol for the Graphic.
toJson() Object Converts object to its ArcGIS Server JSON representation. Not supported for the TemporalRenderer.
Properties Detail

<Symbol> defaultSymbol

Default symbol used when a value or break cannot be matched.
Methods Detail

getSymbol(graphic)

Gets the symbol for the Graphic.
Return value: Symbol
Input Parameters:
<Graphic> graphic Required Graphic to symbolize. Used when creating a custom renderer.

toJson()

Converts object to its ArcGIS Server JSON representation. Not supported for the TemporalRenderer. (As of v2.1)
Return value: Object