|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.renderer.UniqueValueRenderer
public class UniqueValueRenderer
A unique value renderer symbolizes groups of graphics that have matching attributes. This is most common with nominal, or string data. For example, you could use a unique value renderer to symbolize zoning designations: yellow for "Residential", purple for "Industrial", red for "Commercial", and so on. You can also use unique value renderers on numeric fields that are coded values, or on ordinal attributes such as "First", "Second", "Third", and so on. Typically features are rendered based on the unique values of one attribute field. However, up to three fields can be combined to generate a unique value.
Field Summary | |
---|---|
static String |
TYPE
|
Constructor Summary | |
---|---|
UniqueValueRenderer()
Instantiates an empty UniqueValueRenderer object. |
|
UniqueValueRenderer(org.codehaus.jackson.JsonNode node)
Instantiates ClassBreak from a Json node object |
Method Summary | |
---|---|
boolean |
addUniqueValue(UniqueValue uniqueValue)
Adds a unique value. |
String |
getDefaultLabel()
Gets the default label. |
Symbol |
getDefaultSymbol()
Gets the default symbol. |
String |
getField1()
Gets the first attribute field. |
String |
getField2()
Gets the second attribute field. |
String |
getField3()
Gets the third attribute field |
String |
getFieldDelimiter()
Gets field delimiter. |
Symbol |
getSymbol(Graphic graphic)
Returns the symbol of the unique value the graphic provided corresponds to. |
List<UniqueValue> |
getUniqueValueInfos()
Gets a list of unique values. |
boolean |
removeUniqueValue(UniqueValue uniqueValue)
Removes a unique value. |
void |
setDefaultLabel(String defaultLabel)
Sets the default label. |
void |
setDefaultSymbol(Symbol defaultSymbol)
Sets the default symbol. |
void |
setField1(String field1)
Sets the first attribute field. |
void |
setField2(String field2)
Sets the second attribute field |
void |
setField3(String field3)
Sets the third attribute field |
void |
setFieldDelimiter(String fieldDelimiter)
Sets field delimiter |
void |
setUniqueValueInfos(List<UniqueValue> uniqueValueInfos)
Sets unique values |
String |
toJson()
Converts into a JSON string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TYPE
Constructor Detail |
---|
public UniqueValueRenderer()
public UniqueValueRenderer(org.codehaus.jackson.JsonNode node) throws Exception
Exception
Method Detail |
---|
public String getField1()
public void setField1(String field1)
field1
- the name of the attribute field the renderer uses to match values against.public String getField2()
public void setField2(String field2)
field2
- If needed, specifies an additional attribute field the renderer uses to match values.public String getField3()
public void setField3(String field3)
field3
- If needed, specifies an additional attribute field the renderer uses to match values.public String getFieldDelimiter()
public void setFieldDelimiter(String fieldDelimiter)
fieldDelimiter
- string inserted between the values if multiple attribute fields are specifiedpublic Symbol getDefaultSymbol()
public void setDefaultSymbol(Symbol defaultSymbol)
defaultSymbol
- the default symbol used for unmatched values.public String getDefaultLabel()
public void setDefaultLabel(String defaultLabel)
defaultLabel
- the default label to set.public List<UniqueValue> getUniqueValueInfos()
public void setUniqueValueInfos(List<UniqueValue> uniqueValueInfos)
uniqueValueInfos
- the unique value listpublic boolean addUniqueValue(UniqueValue uniqueValue)
uniqueValue
- the unique value to add.public boolean removeUniqueValue(UniqueValue uniqueValue)
uniqueValue
- the unique value to remove.public Symbol getSymbol(Graphic graphic)
getSymbol
in interface Renderer<Graphic>
graphic
- the graphic to be symbolized
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 |