Changeset 12964 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
- Timestamp:
- 2017-10-09T15:22:45+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r12876 r12964 65 65 import org.openstreetmap.josm.gui.draw.MapViewPath; 66 66 import org.openstreetmap.josm.gui.draw.MapViewPositionAndRotation; 67 import org.openstreetmap.josm.gui.mappaint.ElemStyles; 68 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 67 69 import org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement; 68 70 import org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement.HorizontalTextAlignment; … … 261 263 262 264 private MapPaintSettings paintSettings; 265 private ElemStyles styles; 263 266 264 267 private Color highlightColorTransparent; … … 345 348 Component focusOwner = FocusManager.getCurrentManager().getFocusOwner(); 346 349 useWiderHighlight = !(focusOwner instanceof AbstractButton || focusOwner == nc); 350 this.styles = MapPaintStyles.getStyles(); 351 } 352 353 /** 354 * Set the {@link ElemStyles} instance to use for this renderer. 355 * @param styles the {@code ElemStyles} instance to use 356 */ 357 public void setStyles(ElemStyles styles) { 358 this.styles = styles; 347 359 } 348 360 … … 1626 1638 // (Could be synchronized, but try to avoid this for performance reasons.) 1627 1639 THREAD_POOL.invoke(new ComputeStyleListWorker(circum, nc, relations, allStyleElems, 1628 Math.max(20, relations.size() / THREAD_POOL.getParallelism() / 3) ));1640 Math.max(20, relations.size() / THREAD_POOL.getParallelism() / 3), styles)); 1629 1641 THREAD_POOL.invoke(new ComputeStyleListWorker(circum, nc, new CompositeList<>(nodes, ways), allStyleElems, 1630 Math.max(100, (nodes.size() + ways.size()) / THREAD_POOL.getParallelism() / 3) ));1642 Math.max(100, (nodes.size() + ways.size()) / THREAD_POOL.getParallelism() / 3), styles)); 1631 1643 1632 1644 if (!benchmark.renderSort()) {
Note:
See TracChangeset
for help on using the changeset viewer.