Package org.openstreetmap.josm.gui.layer
Class OsmDataLayer.DataCountVisitor
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.OsmDataLayer.DataCountVisitor
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
- Enclosing class:
- OsmDataLayer
public static final class OsmDataLayer.DataCountVisitor extends java.lang.Object implements OsmPrimitiveVisitor
A listener that counts the number of primitives it encounters
-
-
Field Summary
Fields Modifier and Type Field Description int
deletedNodes
Deleted nodes that have been visitedint
deletedRelations
Deleted relations that have been visitedint
deletedWays
Deleted ways that have been visitedint
incompleteNodes
Incomplete nodes that have been visitedint
incompleteRelations
Incomplete relations that have been visitedint
incompleteWays
Incomplete ways that have been visitedint
nodes
Nodes that have been visitedint
relations
Relations that have been visitedint
ways
Ways that have been visited
-
Constructor Summary
Constructors Constructor Description DataCountVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(Node n)
Visiting call for points.void
visit(Relation r)
Visiting call for relations.void
visit(Way w)
Visiting call for lines.
-
-
-
Field Detail
-
nodes
public int nodes
Nodes that have been visited
-
ways
public int ways
Ways that have been visited
-
relations
public int relations
Relations that have been visited
-
deletedNodes
public int deletedNodes
Deleted nodes that have been visited
-
deletedWays
public int deletedWays
Deleted ways that have been visited
-
deletedRelations
public int deletedRelations
Deleted relations that have been visited
-
incompleteNodes
public int incompleteNodes
Incomplete nodes that have been visited
-
incompleteWays
public int incompleteWays
Incomplete ways that have been visited
-
incompleteRelations
public int incompleteRelations
Incomplete relations that have been visited
-
-
Constructor Detail
-
DataCountVisitor
public DataCountVisitor()
-
-
Method Detail
-
visit
public void visit(Node n)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for points.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Parameters:
n
- The node to inspect.
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for lines.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Parameters:
w
- The way to inspect.
-
visit
public void visit(Relation r)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for relations.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Parameters:
r
- The relation to inspect.
-
-