|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.data.osm.visitor.AbstractVisitor
org.openstreetmap.josm.data.validation.util.NameVisitor
public class NameVisitor
Able to create a name and an icon for each data element.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
NameVisitor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor |
|---|
visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String className
public java.lang.String classNamePlural
public java.lang.String name
public javax.swing.Icon icon
| Constructor Detail |
|---|
public NameVisitor()
| Method Detail |
|---|
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.public javax.swing.JLabel toLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||