public abstract class CategorizedLegend<U> extends AbstractAttributeLegend implements ParameterLegend
| Constructor and Description |
|---|
CategorizedLegend() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisitor(CategorizedParameterVisitor cpv)
Implementation of the visitor pattern.
|
void |
addListener(TypeListener l)
Adds a listener that will be notified when
fireTypeChanged is called. |
void |
fireTypeChanged()
Notifies that the actual type of the inner
SeParameter has changed. |
abstract U |
get(Double d)
Gets the U value associated to the key d.
|
String |
getField()
Gets the name of the field on which the analysis is performed.
|
abstract U |
getFromLower(Double d)
Gets the value associated to d, if any, or to the lower threshold.
|
Set<Double> |
getKeys() |
String |
getLookupFieldName()
Gets the field name.
|
ValueReference |
getValueReference() |
abstract void |
put(Double d,
U val)
Put the couple (d,v) in this categorization.
|
abstract U |
remove(Double d)
Removes the mapping associated to d, if it exists and if it does not let the mapping empty.
|
void |
setField(String field)
Sets the name of the field on which the analysis is performed.
|
void |
setLookupFieldName(String name)
Sets the field name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterprotected String field
public ValueReference getValueReference()
getValueReference in class AbstractAttributeLegendpublic String getLookupFieldName()
LookupFieldNamegetLookupFieldName in interface LookupFieldNamegetLookupFieldName in class AbstractAttributeLegendpublic void setLookupFieldName(String name)
LookupFieldNamesetLookupFieldName in interface LookupFieldNamesetLookupFieldName in class AbstractAttributeLegendname - Namepublic String getField()
public void setField(String field)
field - The name of the analyzed field.public abstract U get(Double d)
d - The key whose associated value is wantedd or null if d is not a valid key.public abstract U remove(Double d)
d - The threshold we want to remove.IllegalStateException - if, for whatever reason, one the key of the mapping appears not to be a literal.public abstract void put(Double d, U val)
d - The keyval - The valuepublic abstract U getFromLower(Double d)
public void addListener(TypeListener l)
fireTypeChanged is called.l - The listener that will be added.public void fireTypeChanged()
SeParameter has changed.public void acceptVisitor(CategorizedParameterVisitor cpv)
cpv - The external visitor.Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.