public class NameVisitor extends AbstractVisitor
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
className
The name of the item class
|
java.lang.String |
classNamePlural |
javax.swing.Icon |
icon
The icon of this item.
|
java.lang.String |
name
The name of this item.
|
| Constructor and Description |
|---|
NameVisitor() |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.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.
|
visitpublic java.lang.String className
public java.lang.String classNamePlural
public java.lang.String name
public javax.swing.Icon icon
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)
Visitore - The relation to inspect.public javax.swing.JLabel toLabel()