Changeset 13661 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2018-04-23T01:45:58+02:00 (7 years ago)
Author:
Don-vip
Message:

use of IPrimitive interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LabelCompositionStrategy.java

    r13493 r13661  
    88import java.util.Objects;
    99
    10 import org.openstreetmap.josm.data.osm.OsmPrimitive;
     10import org.openstreetmap.josm.data.osm.IPrimitive;
    1111import org.openstreetmap.josm.spi.preferences.Config;
    1212import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
     
    4646     * if no suitable value could be composed
    4747     */
    48     String compose(OsmPrimitive primitive);
     48    String compose(IPrimitive primitive);
    4949
    5050    /**
     
    5959
    6060        @Override
    61         public String compose(OsmPrimitive primitive) {
     61        public String compose(IPrimitive primitive) {
    6262            return defaultLabel;
    6363        }
     
    104104
    105105        @Override
    106         public String compose(OsmPrimitive primitive) {
     106        public String compose(IPrimitive primitive) {
    107107            if (defaultLabelTag == null) return null;
    108108            if (primitive == null) return null;
     
    246246        }
    247247
    248         private String getPrimitiveName(OsmPrimitive n) {
     248        private String getPrimitiveName(IPrimitive n) {
    249249            StringBuilder name = new StringBuilder();
    250250            if (!n.hasKeys()) return null;
     
    271271
    272272        @Override
    273         public String compose(OsmPrimitive primitive) {
     273        public String compose(IPrimitive primitive) {
    274274            if (primitive == null) return null;
    275275            return getPrimitiveName(primitive);
Note: See TracChangeset for help on using the changeset viewer.