|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.renderer.UniqueValueRenderer
public class UniqueValueRenderer

A unique value renderer. The renderer provides a symbol based on the value of up to three attributes of a graphic.
| Field Summary | |
|---|---|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
UniqueValueRenderer()
Default constructor. |
|
UniqueValueRenderer(org.codehaus.jackson.JsonNode node)
Creates a renderer from a JSON node. |
|
UniqueValueRenderer(Symbol symbol,
String attribute)
Creates a renderer with a default symbol and using a single attribute. |
|
UniqueValueRenderer(Symbol symbol,
String attribute1,
String attribute2)
Creates a renderer with a default symbol and using two attributes. |
|
UniqueValueRenderer(Symbol symbol,
String attribute1,
String attribute2,
String attribute3)
Creates a renderer with a default symbol and using three attributes. |
|
| Method Summary | |
|---|---|
void |
addValue(UniqueValueInfo info)
Add a unique value to the renderer. |
String |
getAttributeName1()
Get the name of the first attribute being used. |
String |
getAttributeName2()
Get the name of the second attribute being used. |
String |
getAttributeName3()
Get the name of the third attribute being used. |
String |
getDefaultLabel()
Gets the default label. |
Symbol |
getDefaultSymbol()
Gets the current default symbol used when a graphic does not match any of the unique values. |
Symbol |
getSymbol(Graphic graphic)
Subclasses must override this method. |
ArrayList<UniqueValueInfo> |
getUniqueValues()
Gets a list of all the unique values. |
void |
removeAll()
Removes all the unique values. |
void |
removeValue(UniqueValueInfo info)
Remove a unique value from the renderer. |
void |
setAttributeName1(String attribute)
Set the first attribute name. |
void |
setAttributeName2(String attribute)
Set the second attribute name. |
void |
setAttributeName3(String attribute)
Set the third attribute name. |
void |
setDefaultLabel(String label)
Sets the default label. |
void |
setDefaultSymbol(Symbol symbol)
Set the default symbol used when a graphic does not match any of the unique values. |
String |
toJson()
Converts into a JSON string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public UniqueValueRenderer(org.codehaus.jackson.JsonNode node)
throws Exception
node - The JSON node.
Exceptionpublic UniqueValueRenderer()
public UniqueValueRenderer(Symbol symbol,
String attribute)
symbol - The symbol.attribute - The attribute name.
public UniqueValueRenderer(Symbol symbol,
String attribute1,
String attribute2)
symbol - The symbol.attribute1 - An attribute name.attribute2 - An attribute name.
public UniqueValueRenderer(Symbol symbol,
String attribute1,
String attribute2,
String attribute3)
symbol - The symbol.attribute1 - An attribute name.attribute2 - An attribute name.attribute3 - An attribute name.| Method Detail |
|---|
public Symbol getSymbol(Graphic graphic)
Renderer
getSymbol in interface Renderer<Graphic>graphic - The Graphic to symbolize.
public void addValue(UniqueValueInfo info)
info - The unique value.public void removeValue(UniqueValueInfo info)
info - The unique value to remove.public String getAttributeName1()
public void setAttributeName1(String attribute)
attribute - The name of an attribute.public String getAttributeName2()
public void setAttributeName2(String attribute)
attribute - The name of an attribute.public String getAttributeName3()
public void setAttributeName3(String attribute)
attribute - The name of an attribute.public void setDefaultLabel(String label)
label - the new default labelpublic String getDefaultLabel()
public void setDefaultSymbol(Symbol symbol)
symbol - The symbol to use.public Symbol getDefaultSymbol()
public ArrayList<UniqueValueInfo> getUniqueValues()
public void removeAll()
public String toJson()
throws Exception
toJson in interface Renderer<Graphic>Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||