java.lang.Object | |
↳ | com.esri.core.renderer.ClassBreaksRenderer |
A class breaks renderer symbolizes each graphic based on the value of some numeric attribute. Graphics with similar values for the attribute get the same symbol. The "breaks" define the values at which the symbology changes.Each break has a value range determined by its maximum value and implicit minimum value.
For example, suppose you have a "buildings" layer with an attribute that defines the building age. You want to symbolize buildings constructed since the year 2000 in green, buildings constructed between 1980 and 2000 in yellow, and buildings built before 1980 with red. This would be a good scenario for a class breaks renderer.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TYPE | The Constant TYPE. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ClassBreaksRenderer()
The Constructor.
| |||||||||||
ClassBreaksRenderer(JsonNode node)
Instantiates ClassBreaksRenderer from a Json node object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
addClassBreak(ClassBreak classbreak)
Adds a class break.
| ||||||||||
TreeMap<Double, ClassBreak> |
getClassBreakInfos()
Returns a TreeMap object in which class break's maximum value maps to class break.
| ||||||||||
Symbol |
getDefaultSymbol()
Gets the default symbol of the ClassBreaksRenderer.
| ||||||||||
String |
getField()
Gets the attribute field used by renderer to match values.
| ||||||||||
double |
getMinValue()
Gets the minimum value.
| ||||||||||
Symbol |
getSymbol(Graphic graphic)
Returns the symbol of the class break the graphic provided belongs to.
| ||||||||||
boolean |
removeClassBreak(ClassBreak classbreak)
Removes a class break.
| ||||||||||
void |
setClassBreakInfos(TreeMap<Double, ClassBreak> classBreakInfos)
Sets class break information map.
| ||||||||||
void |
setDefaultSymbol(Symbol defaultSymbol)
Sets the default symbol of the ClassBreaksRenderer.
| ||||||||||
void |
setField(String field)
Sets the attribute field used by renderer to match values.
| ||||||||||
void |
setMinValue(double minValue)
Sets minimum value.
| ||||||||||
String |
toJson()
Converts into a JSON string.
| ||||||||||
List<FeatureTemplate> |
toTemplates(Geometry.Type type)
Creates templates out of the renderer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.esri.core.renderer.Renderer
|
The Constructor.
Instantiates ClassBreaksRenderer from a Json node object.
node | the node |
---|
Exception | the exception |
---|
Adds a class break.
classbreak | a class break. |
---|
Returns a TreeMap object in which class break's maximum value maps to class break.
Gets the default symbol of the ClassBreaksRenderer. It will be used on the values which in the ranges.
Gets the attribute field used by renderer to match values.
Gets the minimum value.
Returns the symbol of the class break the graphic provided belongs to.
graphic | the graphic to be symbolized |
---|
Removes a class break.
classbreak | a class break. |
---|
Sets class break information map.
classBreakInfos | a TreeMap object in which class break's maximum value maps to class break. |
---|
Sets the default symbol of the ClassBreaksRenderer. It is null by default.
defaultSymbol | The defaultSymbol to set. |
---|
Sets the attribute field used by renderer to match values.
field | the field to set |
---|
Sets minimum value.
minValue | the minimum value to set |
---|
Creates templates out of the renderer.
type | the geometry type. The templates are defined on feature layers, the geometry type is defined on feature layers. |
---|