Changeset 14060 in josm


Ignore:
Timestamp:
2018-07-28T14:29:26+02:00 (8 weeks ago)
Author:
Don-vip
Message:

see #16128 - add new advanced property mappaint.hide.labels.while.dragging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r14055 r14060  
    8383import org.openstreetmap.josm.data.osm.visitor.paint.MapRendererFactory;
    8484import org.openstreetmap.josm.data.osm.visitor.paint.relations.MultipolygonCache;
     85import org.openstreetmap.josm.data.preferences.BooleanProperty;
    8586import org.openstreetmap.josm.data.preferences.IntegerProperty;
    8687import org.openstreetmap.josm.data.preferences.NamedColorProperty;
     
    157158    public static final StringProperty PROPERTY_SAVE_EXTENSION = new StringProperty("save.extension.osm", "osm");
    158159
     160    /**
     161     * Property to determine if labels must be hidden while dragging the map.
     162     */
     163    public static final BooleanProperty PROPERTY_HIDE_LABELS_WHILE_DRAGGING = new BooleanProperty("mappaint.hide.labels.while.dragging", true);
     164
    159165    private static final NamedColorProperty PROPERTY_BACKGROUND_COLOR = new NamedColorProperty(marktr("background"), Color.BLACK);
    160166    private static final NamedColorProperty PROPERTY_OUTSIDE_COLOR = new NamedColorProperty(marktr("outside downloaded area"), Color.YELLOW);
     
    496502
    497503        AbstractMapRenderer painter = MapRendererFactory.getInstance().createActiveRenderer(g, mv, inactive);
    498         painter.enableSlowOperations(mv.getMapMover() == null || !mv.getMapMover().movementInProgress());
     504        painter.enableSlowOperations(mv.getMapMover() == null || !mv.getMapMover().movementInProgress()
     505                || !PROPERTY_HIDE_LABELS_WHILE_DRAGGING.get());
    499506        painter.render(data, virtual, box);
    500507        MainApplication.getMap().conflictDialog.paintConflicts(g, mv);
Note: See TracChangeset for help on using the changeset viewer.