|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.renderer.SimpleRenderer
public class SimpleRenderer
A simple renderer uses the same symbol for every graphic.
| Field Summary | |
|---|---|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
SimpleRenderer(org.codehaus.jackson.JsonNode node)
Instantiates SimpleRenderer from a Json node object. |
|
SimpleRenderer(Symbol symbol)
Instantiates SimpleRenderer with a symbol. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getDescription()
|
String |
getLabel()
|
Symbol |
getSymbol(Graphic graphic)
Subclasses must override this method. |
int |
hashCode()
|
void |
setDescription(String description)
|
void |
setLabel(String label)
|
String |
toJson()
Converts the render to a Json String. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public SimpleRenderer(org.codehaus.jackson.JsonNode node)
throws Exception
Exceptionpublic SimpleRenderer(Symbol symbol)
symbol - The graphic symbol.| Method Detail |
|---|
public Symbol getSymbol(Graphic graphic)
Renderer
getSymbol in interface Renderer<Graphic>graphic - The Graphic to symbolize.
public String getLabel()
public void setLabel(String label)
label - the label to setpublic String getDescription()
public void setDescription(String description)
description - the description to set
public String toJson()
throws Exception
Renderer
toJson in interface Renderer<Graphic>Exceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||