Changeset 2768 in osm for applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
- Timestamp:
- 2007-05-05T19:38:16+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
r2708 r2768 91 91 if (area && fillAreas) 92 92 //Draw segments in a different colour so direction arrows show against the fill 93 drawSegment(ls, w.selected ? getPreferencesColor("selected", Color.YELLOW) : getPreferencesColor("untagged",Color.GRAY),Main.pref.getBoolean("draw.segment.direction"), width );93 drawSegment(ls, w.selected ? getPreferencesColor("selected", Color.YELLOW) : getPreferencesColor("untagged",Color.GRAY),Main.pref.getBoolean("draw.segment.direction"), width,true); 94 94 else 95 drawSegment(ls, w.selected ? getPreferencesColor("selected", Color.YELLOW) : colour,Main.pref.getBoolean("draw.segment.direction"), width); 95 if (area) 96 drawSegment(ls, w.selected ? getPreferencesColor("selected", Color.YELLOW) : colour,Main.pref.getBoolean("draw.segment.direction"), width,true); 97 else 98 drawSegment(ls, w.selected ? getPreferencesColor("selected", Color.YELLOW) : colour,Main.pref.getBoolean("draw.segment.direction"), width,false); 96 99 if (!ls.incomplete && Main.pref.getBoolean("draw.segment.order_number")) 97 100 { … … 158 161 // Altered - now specify width 159 162 @Override protected void drawSegment(Segment ls, Color col,boolean showDirection) { 160 drawSegment(ls,col,showDirection,1 );163 drawSegment(ls,col,showDirection,1,false); 161 164 } 162 165 163 166 164 167 // Altered - now specify width 165 private void drawSegment (Segment ls, Color col,boolean showDirection, int width ) {168 private void drawSegment (Segment ls, Color col,boolean showDirection, int width,boolean dashed) { 166 169 //do not draw already visible segments 167 170 if (ls.shown) return; … … 174 177 g.setColor(col); 175 178 //g.setWidth(width); 176 g2d.setStroke(new BasicStroke(width)); 179 if (dashed) 180 g2d.setStroke(new BasicStroke(width,BasicStroke.CAP_BUTT,BasicStroke.JOIN_ROUND,0,new float[] {9},0)); 181 else 182 g2d.setStroke(new BasicStroke(width)); 183 177 184 Point p1 = nc.getPoint(ls.from.eastNorth); 178 185 Point p2 = nc.getPoint(ls.to.eastNorth);
Note:
See TracChangeset
for help on using the changeset viewer.