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