|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.renderer.ClassBreaksRenderer
public class ClassBreaksRenderer
A class breaks renderer. This renderer symbolizes based on discrete ranges of values.
Field Summary | |
---|---|
static String |
TYPE
|
Constructor Summary | |
---|---|
ClassBreaksRenderer()
Default constructor. |
|
ClassBreaksRenderer(org.codehaus.jackson.JsonNode node)
Creates a renderer from a JSON node. |
|
ClassBreaksRenderer(Symbol defaultSymbol,
String attribute)
Creates a renderer with a default symbol and the name of the attribute value being used. |
Method Summary | |
---|---|
void |
addBreak(ClassBreakInfo classBreak)
Adds a class break to the renderer. |
void |
addBreak(double minValue,
double maxValue,
Symbol symbol)
Adds a class break to the renderer. |
String |
getAttributeName()
Gets the name of the attribute being used by this renderer. |
ArrayList<ClassBreakInfo> |
getClassBreaks()
Gets the breaks in this renderer. |
String |
getDefaultLabel()
Gets the default label. |
Symbol |
getDefaultSymbol()
Gets the default symbol for the renderer. |
double |
getMinimumValue()
Gets the minimu value. |
String |
getNormalizationField()
|
double |
getNormalizationTotal()
|
NormalizationType |
getNormalizationType()
|
Symbol |
getSymbol(Graphic graphic)
Subclasses must override this method. |
boolean |
hasOverlaps()
Checks to see if any breaks overlap. |
void |
removeAll()
Removes all the breaks from the renderer. |
void |
removeBreak(ClassBreakInfo classBreak)
Remove a break from the renderer. |
void |
setAttributeName(String attribute)
Sets the attribute name being used. |
void |
setDefaultLabel(String label)
Sets the default label. |
void |
setDefaultSymbol(Symbol symbol)
Sets the default symbol for the renderer. |
void |
setMinimumValue(double value)
Sets the minimum value. |
void |
setNormalizeField(String _normalizeField)
|
void |
setNormalizeTotal(double _normalizeTotal)
|
void |
setNormalizeType(NormalizationType _normalizeType)
|
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 ClassBreaksRenderer()
public ClassBreaksRenderer(Symbol defaultSymbol, String attribute)
defaultSymbol
- The default symbol.attribute
- The name of the attribute used.public ClassBreaksRenderer(org.codehaus.jackson.JsonNode node) throws Exception
node
- The JSON node.
Exception
Method Detail |
---|
public void addBreak(ClassBreakInfo classBreak)
classBreak
- The break to add.public void addBreak(double minValue, double maxValue, Symbol symbol)
minValue
- The minimum value of the break.maxValue
- The maximum value of the break.symbol
- The symbol to use for this break.public void removeBreak(ClassBreakInfo classBreak)
classBreak
- The break to remove.public Symbol getSymbol(Graphic graphic)
Renderer
getSymbol
in interface Renderer<Graphic>
graphic
- The Graphic to symbolize.
public String getAttributeName()
public void setAttributeName(String attribute)
attribute
- The attribute name.public double getMinimumValue()
public void setMinimumValue(double value)
value
- the new minimum valuepublic void setDefaultLabel(String label)
label
- the new default labelpublic String getDefaultLabel()
public void setDefaultSymbol(Symbol symbol)
symbol
- The symbol to set.public Symbol getDefaultSymbol()
public ArrayList<ClassBreakInfo> getClassBreaks()
public void setNormalizeType(NormalizationType _normalizeType)
public NormalizationType getNormalizationType()
public void setNormalizeField(String _normalizeField)
public String getNormalizationField()
public void setNormalizeTotal(double _normalizeTotal)
public double getNormalizationTotal()
public boolean hasOverlaps()
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 |