public class FieldAggregatorVisitor extends Object implements RecodedParameterVisitor, CategorizedParameterVisitor
| Constructor and Description |
|---|
FieldAggregatorVisitor() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getFields()
Return the set containing all the fields that have been encountered in the analysed
RecodedLegend. |
void |
visit(CategorizedLegend legend)
Visit the given
CategorizedLegend. |
void |
visit(org.orbisgis.legend.structure.recode.RecodedLegend legend)
Adds the legend's field to the set of analysed fields.
|
public void visit(org.orbisgis.legend.structure.recode.RecodedLegend legend)
legend.field() == null, don't do anything.visit in interface RecodedParameterVisitorlegend - The RecodedLegend we will analysepublic void visit(CategorizedLegend legend)
CategorizedParameterVisitorCategorizedLegend. It's the intelligent part of the visitor implementation.visit in interface CategorizedParameterVisitorCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.