com.esri.core.renderer
Interface Renderer<V>

Type Parameters:
V - The Graphic to symbolize.
All Superinterfaces:
Serializable
All Known Implementing Classes:
ClassBreaksRenderer, DictionaryRenderer, SimpleRenderer, UniqueValueRenderer

public interface Renderer<V>
extends Serializable

Base class for all renderers - use SimpleRenderer with a GraphicsLayer.

Since:
1.0

Method Summary
 Symbol getSymbol(V graphic)
          Subclasses must override this method.
 String toJson()
          Converts the render to a Json String.
 

Method Detail

getSymbol

Symbol getSymbol(V graphic)
Subclasses must override this method. You wouldn't typically work with this method unless you need to create your own renderer.

Parameters:
graphic - The Graphic to symbolize.
Returns:
the symbol based on the properties of the graphic.
Since:
1.0

toJson

String toJson()
              throws Exception
Converts the render to a Json String.

Throws:
Exception
Since:
1.0


Copyright © 2012. All Rights Reserved.