Ignore:
Timestamp:
2010-03-27T18:37:41+01:00 (15 years ago)
Author:
bastiK
Message:

fixed #2801 - Display junction nodes with a different style à la Potlatch

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r2932 r3159  
    196196        // Do nothing for now, but in future replace CachedLatLon with simple doubles and update precalculated EastNorth value here
    197197    }
     198
     199    public boolean isJunctionNode() {
     200        return (OsmPrimitive.getFilteredList(getReferrers(), Way.class)).size() > 1;
     201    }
    198202}
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java

    r3083 r3159  
    2222    private int showIconsDistance;
    2323    private int selectedNodeSize;
    24     private int taggedNodeSize;
     24    private int junctionNodeSize;
    2525    private int unselectedNodeSize;
    2626    private boolean fillSelectedNode;
    2727    private boolean fillUnselectedNode;
    28 
     28    private boolean fillTaggedNode;
    2929    private Color selectedColor;
    3030    private Color highlightColor;
     
    5757        selectedNodeSize = Main.pref.getInteger("mappaint.node.selected-size", 5);
    5858        unselectedNodeSize = Main.pref.getInteger("mappaint.node.unselected-size", 3);
    59         taggedNodeSize = Main.pref.getInteger("mappaint.node.tagged-size", 5);
     59        junctionNodeSize = Main.pref.getInteger("mappaint.node.junction-size", 5);
    6060        fillSelectedNode = Main.pref.getBoolean("mappaint.node.fill-selected", true);
    6161        fillUnselectedNode = Main.pref.getBoolean("mappaint.node.fill-unselected", false);
     62        fillTaggedNode = Main.pref.getBoolean("mappaint.node.fill-tagged", true);
    6263    }
    6364
     
    126127    }
    127128
    128     public int getTaggedNodeSize() {
    129         return taggedNodeSize;
     129    public int getJunctionNodeSize() {
     130        return junctionNodeSize;
    130131    }
    131132
     
    141142        return fillUnselectedNode;
    142143    }
     144
     145    public boolean isFillTaggedNode() {
     146        return fillTaggedNode;
     147    }
    143148}
Note: See TracChangeset for help on using the changeset viewer.