- Timestamp:
- 2015-12-01T00:17:33+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
r9071 r9076 117 117 unclosedAreaHighlight = Main.pref.getBoolean("draw.unclosed_area_partial_fill_highlight", false); 118 118 unclosedAreaHighlightWidth = Main.pref.getDouble("draw.unclosed_area_partial_fill_highlight.width", 80); 119 partialFillThreshold = Main.pref.getDouble("draw.area.partial_fill_threshold", 50);119 partialFillThreshold = Main.pref.getDouble("draw.area.partial_fill_threshold", 70); 120 120 } 121 121 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r9075 r9076 288 288 289 289 private double circum; 290 private double scale; 290 291 291 292 private MapPaintSettings paintSettings; … … 630 631 AreaAndPerimeter ap = pd.getAreaAndPerimeter(); 631 632 // if partial fill would only leave a small gap in the center ... 632 if (ap.getPerimeter() * extent * circum / 100> partialFillThreshold / 100 * ap.getArea()) {633 if (ap.getPerimeter() * extent * scale > partialFillThreshold / 100 * ap.getArea()) { 633 634 // ... turn it off and fill completely 634 635 extent = null; … … 660 661 AreaAndPerimeter ap = Geometry.getAreaAndPerimeter(w.getNodes()); 661 662 // if partial fill would only leave a small gap in the center ... 662 if (ap.getPerimeter() * extent * circum / 100> partialFillThreshold / 100 * ap.getArea()) {663 if (ap.getPerimeter() * extent * scale > partialFillThreshold / 100 * ap.getArea()) { 663 664 // ... turn it off and fill completely 664 665 extent = null; … … 1513 1514 1514 1515 circum = nc.getDist100Pixel(); 1516 scale = nc.getScale(); 1515 1517 1516 1518 leftHandTraffic = Main.pref.getBoolean("mappaint.lefthandtraffic", false); -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r9073 r9076 215 215 216 216 /** 217 * @return Returns the center point. A copy is returned, so users cannot 218 * change the center by accessing the return value. Use zoomTo instead. 217 * Returns the current center of the viewport. 218 * 219 * (Use {@link #zoomTo(EastNorth)} to the change the center.) 220 * 221 * @return the current center of the viewport 219 222 */ 220 223 public EastNorth getCenter() { … … 222 225 } 223 226 227 /** 228 * Returns the current scale. 229 * 230 * In east/north units per pixel. 231 * 232 * @return the current scale 233 */ 224 234 public double getScale() { 225 235 return scale;
Note:
See TracChangeset
for help on using the changeset viewer.