Changeset 13987 in josm
- Timestamp:
- 2018-06-30T12:01:59+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java
r13810 r13987 61 61 /** Preference: minimum space (displayed way length) to display segment numbers */ 62 62 protected int segmentNumberSpace; 63 64 /** Performs slow operations by default. Can be disabled when fast partial rendering is required */ 65 protected boolean doSlowOperations; 63 66 64 67 /** … … 243 246 } 244 247 } 248 249 /** 250 * Sets whether slow operations such as text rendering must be performed (true by default). 251 * @param enable whether slow operations such as text rendering must be performed 252 * @since 13987 253 */ 254 public final void enableSlowOperations(boolean enable) { 255 doSlowOperations = enable; 256 } 245 257 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r13922 r13987 1553 1553 */ 1554 1554 public boolean isShowNames() { 1555 return showNames ;1555 return showNames && doSlowOperations; 1556 1556 } 1557 1557 -
trunk/src/org/openstreetmap/josm/gui/MapMover.java
r13761 r13987 22 22 import org.openstreetmap.josm.data.preferences.BooleanProperty; 23 23 import org.openstreetmap.josm.gui.MapViewState.MapViewPoint; 24 import org.openstreetmap.josm.gui.layer.Layer; 24 25 import org.openstreetmap.josm.spi.preferences.Config; 25 26 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; … … 158 159 } 159 160 160 private boolean movementInProgress() { 161 /** 162 * Determines if a map move is in progress. 163 * @return {@code true} if a map move is in progress 164 * @since 13987 165 */ 166 public boolean movementInProgress() { 161 167 return mousePosMoveStart != null; 162 168 } … … 238 244 nc.resetCursor(this); 239 245 mousePosMoveStart = null; 246 MainApplication.getLayerManager().getLayers().forEach(Layer::invalidate); 240 247 } 241 248 -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r13951 r13987 80 80 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 81 81 import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor; 82 import org.openstreetmap.josm.data.osm.visitor.paint.AbstractMapRenderer; 82 83 import org.openstreetmap.josm.data.osm.visitor.paint.MapRendererFactory; 83 import org.openstreetmap.josm.data.osm.visitor.paint.Rendering;84 84 import org.openstreetmap.josm.data.osm.visitor.paint.relations.MultipolygonCache; 85 85 import org.openstreetmap.josm.data.preferences.IntegerProperty; … … 493 493 } 494 494 495 Rendering painter = MapRendererFactory.getInstance().createActiveRenderer(g, mv, inactive); 495 AbstractMapRenderer painter = MapRendererFactory.getInstance().createActiveRenderer(g, mv, inactive); 496 painter.enableSlowOperations(mv.getMapMover() == null || !mv.getMapMover().movementInProgress()); 496 497 painter.render(data, virtual, box); 497 498 MainApplication.getMap().conflictDialog.paintConflicts(g, mv);
Note:
See TracChangeset
for help on using the changeset viewer.