Changeset 13661 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-04-23T01:45:58+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LabelCompositionStrategy.java
r13493 r13661 8 8 import java.util.Objects; 9 9 10 import org.openstreetmap.josm.data.osm. OsmPrimitive;10 import org.openstreetmap.josm.data.osm.IPrimitive; 11 11 import org.openstreetmap.josm.spi.preferences.Config; 12 12 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; … … 46 46 * if no suitable value could be composed 47 47 */ 48 String compose( OsmPrimitive primitive);48 String compose(IPrimitive primitive); 49 49 50 50 /** … … 59 59 60 60 @Override 61 public String compose( OsmPrimitive primitive) {61 public String compose(IPrimitive primitive) { 62 62 return defaultLabel; 63 63 } … … 104 104 105 105 @Override 106 public String compose( OsmPrimitive primitive) {106 public String compose(IPrimitive primitive) { 107 107 if (defaultLabelTag == null) return null; 108 108 if (primitive == null) return null; … … 246 246 } 247 247 248 private String getPrimitiveName( OsmPrimitive n) {248 private String getPrimitiveName(IPrimitive n) { 249 249 StringBuilder name = new StringBuilder(); 250 250 if (!n.hasKeys()) return null; … … 271 271 272 272 @Override 273 public String compose( OsmPrimitive primitive) {273 public String compose(IPrimitive primitive) { 274 274 if (primitive == null) return null; 275 275 return getPrimitiveName(primitive);
Note:
See TracChangeset
for help on using the changeset viewer.