public class ClassBreaksRenderer extends Renderer
Modifier and Type | Class and Description |
---|---|
static class |
ClassBreaksRenderer.Break
Deprecated.
at v2.0. Use Info instead
|
static class |
ClassBreaksRenderer.Info |
Modifier and Type | Method and Description |
---|---|
void |
addBreak(double minValue,
double maxValue,
Symbol symbol)
Adds a class break.
|
void |
addBreak(double minValue,
double maxValue,
Symbol symbol,
java.lang.String label,
java.lang.String description)
Adds a class break.
|
static ClassBreaksRenderer |
create(Symbol defaultSymbol,
java.lang.String attributeField)
Creates a new ClassBreaksRenderer object.
|
java.lang.String |
getAttributeField()
The name of the attribute field the renderer uses to match values against.
|
com.google.gwt.core.client.JsArray<ClassBreaksRenderer.Break> |
getBreaks()
Deprecated.
at v2.0, use getInfos() instead.
|
com.google.gwt.core.client.JsArray<ClassBreaksRenderer.Info> |
getInfos()
Each element in the array is an object that provides information about the class breaks associated with the renderer.
|
void |
removeBreak(double minValue,
double maxValue)
Removes a break.
|
fromJson, getDefaultSymbol, getSymbol, toJson
public static final ClassBreaksRenderer create(Symbol defaultSymbol, java.lang.String attributeField)
defaultSymbol
- - Default symbol for the renderer. This symbol is used for unmatched values.attributeField
- - Attribute field renderer uses to match values.public final java.lang.String getAttributeField()
public final com.google.gwt.core.client.JsArray<ClassBreaksRenderer.Break> getBreaks()
public final com.google.gwt.core.client.JsArray<ClassBreaksRenderer.Info> getInfos()
public final void addBreak(double minValue, double maxValue, Symbol symbol)
minValue
- - Minimum value in the break.maxValue
- - Maximum value in the break.symbol
- - Symbol used for the break.public final void addBreak(double minValue, double maxValue, Symbol symbol, java.lang.String label, java.lang.String description)
minValue
- - Minimum value in the break.maxValue
- - Maximum value in the break.symbol
- - Symbol used for the break.label
- - Label for the symbol used to draw the value.description
- - Label for the symbol used to draw the value.public final void removeBreak(double minValue, double maxValue)
minValue
- - Minimum value in the break to remove.maxValue
- - Maximum value in the break to remove.