Changeset 1443 in osm for utils/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
- Timestamp:
- 2006-10-08T17:43:49+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
r1438 r1443 23 23 24 24 /** 25 * Draw a small rectangle. 25 * Draw a small rectangle. 26 26 * White if selected (as always) or red otherwise. 27 * 27 * 28 28 * @param n The node to draw. 29 29 */ … … 44 44 else 45 45 { 46 drawNode(n, n.selected ? getPreferencesColor("selected", 46 drawNode(n, n.selected ? getPreferencesColor("selected", 47 47 Color.YELLOW) 48 48 : getPreferencesColor("node", Color.RED)); … … 92 92 { 93 93 if (!ls.selected) // selected already in good color 94 drawSegment(ls, w.selected ? 94 drawSegment(ls, w.selected ? 95 95 getPreferencesColor("selected", Color.YELLOW) : colour, 96 96 width); … … 118 118 } 119 119 120 g.setColor( w.selected ? 120 g.setColor( w.selected ? 121 121 getPreferencesColor("selected", Color.YELLOW) : colour); 122 122 … … 146 146 * Draw a line with the given color. 147 147 */ 148 // Altered - now specify width 148 // Altered - now specify width 149 149 @Override protected void drawSegment(Segment ls, Color col) { 150 150 drawSegment(ls,col,1); 151 151 } 152 152 153 // Altered - now specify width 153 // Altered - now specify width 154 154 private void drawSegment (Segment ls, Color col, int width) { 155 155 Graphics2D g2d = (Graphics2D)g;
Note:
See TracChangeset
for help on using the changeset viewer.