Changeset 3691 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2010-12-03T00:36:07+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 2 edited
-
MapPaintSettings.java (modified) (3 diffs)
-
MapPainter.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
r3291 r3691 29 29 private boolean fillTaggedNode; 30 30 private boolean fillConnectionNode; 31 private boolean outlineOnly; 31 32 private Color selectedColor; 32 33 private Color relationSelectedColor; … … 78 79 fillTaggedNode = Main.pref.getBoolean("mappaint.node.fill-tagged", true); 79 80 fillConnectionNode = Main.pref.getBoolean("mappaint.node.fill-connection", false); 81 82 outlineOnly = Main.pref.getBoolean("draw.data.area_outline_only", false); 83 80 84 } 81 85 … … 187 191 return fillTaggedNode; 188 192 } 193 194 public boolean isOutlineOnly() { 195 return outlineOnly; 196 } 189 197 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r3653 r3691 28 28 29 29 public class MapPainter { 30 30 31 private final Graphics2D g; 31 32 private final NavigatableComponent nc; … … 35 36 private final boolean showNames; 36 37 private final boolean showIcons; 38 private final boolean outlineOnly; 37 39 38 40 private final Color inactiveColor; … … 58 60 private static final double sinPHI = Math.sin(PHI); 59 61 60 public MapPainter(MapPaintSettings settings, Graphics2D g, boolean inactive, NavigatableComponent nc, boolean virtual, double dist, double circum) { 62 public MapPainter(MapPaintSettings settings, Graphics2D g, 63 boolean inactive, NavigatableComponent nc, boolean virtual, 64 double dist, double circum) { 65 61 66 this.g = g; 62 67 this.inactive = inactive; … … 65 70 this.showNames = settings.getShowNamesDistance() > dist; 66 71 this.showIcons = settings.getShowIconsDistance() > dist; 72 this.outlineOnly = settings.isOutlineOnly(); 67 73 68 74 this.inactiveColor = PaintColors.INACTIVE.get(); … … 249 255 /* set the opacity (alpha) level of the filled polygon */ 250 256 g.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), fillAlpha)); 251 g.fillPolygon(polygon); 257 258 if (outlineOnly) { 259 g.drawPolygon(polygon); 260 } else { 261 g.fillPolygon(polygon); 262 } 263 252 264 253 265 if (name != null) {
Note:
See TracChangeset
for help on using the changeset viewer.
