Class NameVisitor

    • Method Detail

      • visit

        public void visit​(Node n)
        If the node has a name-key or id-key, this is displayed. If not, (lat,lon) is displayed.
        Specified by:
        visit in interface OsmPrimitiveVisitor
        Parameters:
        n - The node to inspect.
      • visit

        public void visit​(Way w)
        If the way has a name-key or id-key, this is displayed. If not, (x nodes) is displayed with x being the number of nodes in the way.
        Specified by:
        visit in interface OsmPrimitiveVisitor
        Parameters:
        w - The way to inspect.
      • toLabel

        public JLabel toLabel()
        Returns an horizontal JLabel with icon and name.
        Returns:
        horizontal JLabel with icon and name