Changeset 1564 in osm for utils/josm/plugins/mappaint/src
- Timestamp:
- 2006-11-11T11:50:19+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
r1501 r1564 14 14 import org.openstreetmap.josm.data.osm.Segment; 15 15 import org.openstreetmap.josm.data.osm.Way; 16 import org.openstreetmap.josm.data.osm.DataSet; 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 16 18 import org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor; 17 19 … … 50 52 */ 51 53 @Override public void visit(Segment ls) { 52 drawSegment(ls, Color.GRAY);54 drawSegment(ls, getPreferencesColor("untagged",Color.GRAY)); 53 55 } 54 56 … … 59 61 // Altered from SimplePaintVisitor 60 62 @Override public void visit(Way w) { 61 Color colour = Color.GRAY;63 Color colour = getPreferencesColor("untagged",Color.GRAY); 62 64 int width=1; 63 65 boolean area=false; … … 126 128 if (name!=null) 127 129 { 128 g.setColor( Color.WHITE);130 g.setColor( getPreferencesColor ("text", Color.WHITE)); 129 131 g.setFont (new Font("Helvetica", Font.PLAIN, 8)); 130 132 g.drawString (name, p.x+w/2+2, p.y+h/2+2); … … 179 181 } 180 182 183 // NW 111106 Overridden from SimplePaintVisitor in josm-1.4-nw1 184 // Shows areas before non-areas 185 public void visitAll(DataSet data) { 186 187 for (final OsmPrimitive osm : data.segments) 188 if (!osm.deleted) 189 osm.visit(this); 190 191 for (final OsmPrimitive osm : data.ways) { 192 if(!osm.deleted && MapPaintPlugin.elemStyles.isArea(osm)) 193 osm.visit(this); 194 } 195 196 for (final OsmPrimitive osm : data.ways) { 197 if(!osm.deleted && !MapPaintPlugin.elemStyles.isArea(osm)) 198 osm.visit(this); 199 } 200 201 for (final OsmPrimitive osm : data.nodes) 202 if (!osm.deleted) 203 osm.visit(this); 204 205 for (final OsmPrimitive osm : data.getSelected()) 206 if (!osm.deleted) 207 osm.visit(this); 208 } 181 209 }
Note:
See TracChangeset
for help on using the changeset viewer.