public class MultipleNameVisitor extends NameVisitor
| Modifier and Type | Field and Description |
|---|---|
private String |
displayName
Name to be displayed
|
static int |
MULTIPLE_NAME_MAX_LENGTH |
private String |
multipleClassname
The class name of the combined primitives
|
private int |
size
Size of the collection
|
className, classNamePlural, icon, name| Constructor and Description |
|---|
MultipleNameVisitor() |
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon()
Gets the icon of the items
|
String |
getText()
Gets the name of the items
|
JLabel |
toLabel() |
String |
toString() |
void |
visit(Collection<? extends OsmPrimitive> data)
Visits a collection of primitives
|
visit, visit, visitvisitpublic static final int MULTIPLE_NAME_MAX_LENGTH
private String multipleClassname
private String displayName
private int size
public MultipleNameVisitor()
public void visit(Collection<? extends OsmPrimitive> data)
data - The collection of primitivespublic JLabel toLabel()
toLabel in class NameVisitor