Changeset 3159 in josm
- Timestamp:
- 2010-03-27T18:37:41+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r2932 r3159 196 196 // Do nothing for now, but in future replace CachedLatLon with simple doubles and update precalculated EastNorth value here 197 197 } 198 199 public boolean isJunctionNode() { 200 return (OsmPrimitive.getFilteredList(getReferrers(), Way.class)).size() > 1; 201 } 198 202 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
r3083 r3159 22 22 private int showIconsDistance; 23 23 private int selectedNodeSize; 24 private int taggedNodeSize;24 private int junctionNodeSize; 25 25 private int unselectedNodeSize; 26 26 private boolean fillSelectedNode; 27 27 private boolean fillUnselectedNode; 28 28 private boolean fillTaggedNode; 29 29 private Color selectedColor; 30 30 private Color highlightColor; … … 57 57 selectedNodeSize = Main.pref.getInteger("mappaint.node.selected-size", 5); 58 58 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); 60 60 fillSelectedNode = Main.pref.getBoolean("mappaint.node.fill-selected", true); 61 61 fillUnselectedNode = Main.pref.getBoolean("mappaint.node.fill-unselected", false); 62 fillTaggedNode = Main.pref.getBoolean("mappaint.node.fill-tagged", true); 62 63 } 63 64 … … 126 127 } 127 128 128 public int get TaggedNodeSize() {129 return taggedNodeSize;129 public int getJunctionNodeSize() { 130 return junctionNodeSize; 130 131 } 131 132 … … 141 142 return fillUnselectedNode; 142 143 } 144 145 public boolean isFillTaggedNode() { 146 return fillTaggedNode; 147 } 143 148 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/SimpleNodeElemStyle.java
r3116 r3159 25 25 } else if (selected) { 26 26 painter.drawNode(n, settings.getSelectedColor(), settings.getSelectedNodeSize(), settings.isFillSelectedNode(), name); 27 } else if (n.isTagged()) {28 painter.drawNode(n, settings.getNodeColor(), settings.getTaggedNodeSize(), settings.isFillUnselectedNode(), name);29 } else if (painter.isInactive() || n.isDisabled()) {30 painter.drawNode(n, settings.getInactiveColor(), settings.getUnselectedNodeSize(), settings.isFillUnselectedNode(), name);31 27 } else { 32 painter.drawNode(n, settings.getNodeColor(), settings.getUnselectedNodeSize(), settings.isFillUnselectedNode(), name); 28 painter.drawNode( 29 n, 30 (painter.isInactive() || n.isDisabled()) ? settings.getInactiveColor() : settings.getNodeColor(), 31 n.isJunctionNode() ? settings.getJunctionNodeSize() : settings.getUnselectedNodeSize(), 32 n.isTagged() ? settings.isFillTaggedNode() : settings.isFillUnselectedNode(), 33 name); 33 34 } 34 35 }
Note:
See TracChangeset
for help on using the changeset viewer.