public class CategorizedString extends CategorizedLegend<String>
field| Constructor and Description |
|---|
CategorizedString(StringParameter sp)
Build a CategorizedString from the given StringParameter.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(Double d)
Gets the U value associated to the key d.
|
String |
getFallbackValue()
Gets the value obtained when the input data can't be processed for whatever reason.
|
String |
getFromLower(Double d)
Gets the value associated to d, if any, or to the lower threshold.
|
SeParameter |
getParameter()
Gets the
SeParameter that had been used to build this LegendStructure. |
void |
put(Double d,
String v)
Put the couple (d,v) in this categorization.
|
String |
remove(Double d)
Removes the mapping associated to d, if it exists and if it does not let the mapping empty.
|
void |
setFallbackValue(String value)
Sets the value obtained when the input data can't be processed for whatever reason.
|
void |
setParameter(StringParameter param)
Replaces the inner StringParameter with the given one.
|
acceptVisitor, addListener, fireTypeChanged, getField, getKeys, getLookupFieldName, getValueReference, setField, setLookupFieldNamepublic CategorizedString(StringParameter sp)
sp - The input parameter.public SeParameter getParameter()
ParameterLegendSeParameter that had been used to build this LegendStructure.public void setParameter(StringParameter param)
param must either be a literal or a
Categorize2String whose lookup value is a simple RealAttributeparam - The new inner StringParameter used in this CategorizedString.IllegalArgumentException - if param can't be used to build a valid CategorizedStringpublic String getFallbackValue()
public void setFallbackValue(String value)
value - The new fallback value.public String get(Double d)
CategorizedLegendget in class CategorizedLegend<String>d - The key whose associated value is wantedd or null if d is not a valid key.public void put(Double d, String v)
CategorizedLegendput in class CategorizedLegend<String>d - The keyv - The valuepublic String remove(Double d)
CategorizedLegendremove in class CategorizedLegend<String>d - The threshold we want to remove.public String getFromLower(Double d)
CategorizedLegendgetFromLower in class CategorizedLegend<String>Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.