public abstract class MappedLegend<T,U extends SymbolParameters> extends SymbolizerLegend implements Map<T,U>, LookupFieldName
| Modifier and Type | Class and Description |
|---|---|
protected class |
MappedLegend.MappedLegendEntry
MapEntry dedicated to MappedLegend instances.
|
static class |
MappedLegend.NumComparator
This comparator intends to transform the input String instances
to Double instances and to compare them thereafter.
|
| Constructor and Description |
|---|
MappedLegend() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyGlobalVisitor(ParameterVisitor rpv)
Apply the given visitor to all the Legend that are used in this
MappedLegend. |
void |
clear()
Removes all the entries in this classification.
|
boolean |
containsKey(Object s)
Checks whether s is a key of this mapping.
|
boolean |
containsValue(Object lp)
Checks if
lp is a value contained in this MappedLegend |
Set<Map.Entry<T,U>> |
entrySet()
Gets a
Set representation of the key-value mapping we have in this MappedLegend. |
boolean |
equals(Object o) |
abstract U |
getFallbackParameters()
Gets the configuration used to draw features we can't get a value for in the map in the style .
|
String |
getLookupFieldName()
Gets the field name.
|
abstract T |
getNotUsedKey(T orig)
Search in this legend for a key that is not already used.
|
boolean |
isEmpty()
Returns true if there is nothing in this map.
|
SortedSet<T> |
keySet()
Gets the keys currently used in the analysis.
|
void |
putAll(Map<? extends T,? extends U> input)
Put all the entries found in the given map as entries in this MappedLegend.
|
void |
setComparator(Comparator<T> comp)
Sets the comparator we want to use for elements ordering.
|
abstract void |
setFallbackParameters(U fallback)
Sets the fallback configuration according to the one given in argument.
|
void |
setLookupFieldName(String field)
Sets the field name.
|
int |
size()
Returns the number of elements contained in this classification.
|
Collection<U> |
values()
Gets all the LineParameters stored in this RecodedLine, default one excepted.
|
getLegendTypeId, getMaxScale, getMinScale, getName, setMaxScale, setMinScale, setNameclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLegendTypeName, getSymbolizergetStrokeUom, setStrokeUompublic abstract void applyGlobalVisitor(ParameterVisitor rpv)
MappedLegend.rpv - The visitor that will be used in each inner MappedLegend.public abstract T getNotUsedKey(T orig)
orig - The original key on which to base the searchpublic String getLookupFieldName()
LookupFieldNamegetLookupFieldName in interface LookupFieldNamepublic void setLookupFieldName(String field)
LookupFieldNamesetLookupFieldName in interface LookupFieldNamefield - Namepublic SortedSet<T> keySet()
keySet in interface Map<T,U extends SymbolParameters>public int size()
size in interface Map<T,U extends SymbolParameters>public boolean isEmpty()
isEmpty in interface Map<T,U extends SymbolParameters>true if we don't have any key-value mapping.public void putAll(Map<? extends T,? extends U> input)
putAll in interface Map<T,U extends SymbolParameters>input - The input map.public Set<Map.Entry<T,U>> entrySet()
Set representation of the key-value mapping we have in this MappedLegend.entrySet in interface Map<T,U extends SymbolParameters>Map.Entry.public void clear()
clear in interface Map<T,U extends SymbolParameters>public boolean containsValue(Object lp)
lp is a value contained in this MappedLegendcontainsValue in interface Map<T,U extends SymbolParameters>lp - The value we searchtrue if we have a mapping to lp.public boolean containsKey(Object s)
containsKey in interface Map<T,U extends SymbolParameters>s - The key we searchClassCastException - if the key is of an inappropriate type for this mappublic boolean equals(Object o)
public Collection<U> values()
values in interface Map<T,U extends SymbolParameters>LineParameters in a Collection.public void setComparator(Comparator<T> comp)
comp - The comparator we want to use.public abstract void setFallbackParameters(U fallback)
fallback - The new basis for the fallback configuration.public abstract U getFallbackParameters()
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.