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