Changeset 2685 in osm for applications/editors/josm
- Timestamp:
- 2007-04-29T23:35:57+02:00 (18 years ago)
- Location:
- applications/editors/josm/plugins/mappaint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mappaint/build.xml
r2022 r2685 2 2 3 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../../../editors/josm/dist/josm-custom.jar" /> 4 <!-- <property name="josm" location="../../../../editors/josm/dist/josm-custom.jar" /> --> 5 <property name="josm" location="../josm/josm-latest.jar" ></property> 5 6 6 7 -
applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
r2602 r2685 1 1 package mappaint; 2 3 import java.util.Collection; 4 import java.util.LinkedList; 2 5 3 6 import java.awt.BasicStroke; … … 55 58 @Override public void visit(Segment ls) { 56 59 if (isSegmentVisible(ls)) 57 drawSegment(ls, getPreferencesColor("untagged",Color.GRAY)); 60 drawSegment(ls, getPreferencesColor("untagged",Color.GRAY),Main.pref.getBoolean("draw.segment.direction")); 58 61 } 59 62 … … 183 186 */ 184 187 // Altered - now specify width 185 @Override protected void drawSegment(Segment ls, Color col) { 188 @Override protected void drawSegment(Segment ls, Color col,boolean showDirection) { 186 189 drawSegment(ls,col,1); 187 190 } … … 224 227 // Shows areas before non-areas 225 228 public void visitAll(DataSet data) { 229 230 Collection<Way> noAreaWays = new LinkedList<Way>(); 226 231 for (final OsmPrimitive osm : data.segments) 227 232 if (!osm.deleted) … … 231 236 if (!osm.deleted && MapPaintPlugin.elemStyles.isArea(osm)) 232 237 osm.visit(this); 233 234 for (final OsmPrimitive osm : data.ways) 235 if (!osm.deleted && !MapPaintPlugin.elemStyles.isArea(osm)) 236 osm.visit(this); 238 else if (!osm.deleted) 239 noAreaWays.add((Way)osm); 240 241 for (final OsmPrimitive osm : noAreaWays) 242 osm.visit(this); 237 243 238 244 for (final OsmPrimitive osm : data.nodes)
Note:
See TracChangeset
for help on using the changeset viewer.