public class NameVisitor extends AbstractVisitor
Modifier and Type | Field and Description |
---|---|
String |
className
The name of the item class
|
String |
classNamePlural |
Icon |
icon
The icon of this item.
|
String |
name
The name of this item.
|
Constructor and Description |
---|
NameVisitor() |
Modifier and Type | Method and Description |
---|---|
JLabel |
toLabel() |
void |
visit(Node n)
If the node has a name-key or id-key, this is displayed.
|
void |
visit(Relation e)
Visiting call for relations.
|
void |
visit(Way w)
If the way has a name-key or id-key, this is displayed.
|
visit
public String classNamePlural
public NameVisitor()
public void visit(Node n)
n
- The node to inspect.public void visit(Way w)
w
- The way to inspect.public void visit(Relation e)
Visitor
e
- The relation to inspect.