- Timestamp:
- 2018-04-13T00:07:00+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/PrimitiveVisitor.java
r6920 r13623 13 13 14 14 /** 15 * Visiting call for points.15 * Visiting call for nodes. 16 16 * @param n The node to inspect. 17 17 */ … … 19 19 20 20 /** 21 * Visiting call for lines.21 * Visiting call for ways. 22 22 * @param w The way to inspect. 23 23 */ -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r13496 r13623 38 38 import org.openstreetmap.josm.command.SequenceCommand; 39 39 import org.openstreetmap.josm.data.osm.DataSet; 40 import org.openstreetmap.josm.data.osm.IPrimitive; 40 41 import org.openstreetmap.josm.data.osm.OsmPrimitive; 41 42 import org.openstreetmap.josm.data.osm.Relation; … … 78 79 * @since 294 79 80 */ 80 public class TaggingPreset extends AbstractAction implements ActiveLayerChangeListener, AdaptableAction, Predicate< OsmPrimitive> {81 public class TaggingPreset extends AbstractAction implements ActiveLayerChangeListener, AdaptableAction, Predicate<IPrimitive> { 81 82 82 83 public static final int DIALOG_ANSWER_APPLY = 1; … … 590 591 * @param p the primitive 591 592 * @return {@code true} if this preset matches the primitive 593 * @since 13623 (signature) 592 594 */ 593 595 @Override 594 public boolean test( OsmPrimitive p) {596 public boolean test(IPrimitive p) { 595 597 return matches(EnumSet.of(TaggingPresetType.forPrimitive(p)), p.getKeys(), false); 596 598 } -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresets.java
r12846 r13623 14 14 import javax.swing.JSeparator; 15 15 16 import org.openstreetmap.josm.data.osm. OsmPrimitive;16 import org.openstreetmap.josm.data.osm.IPrimitive; 17 17 import org.openstreetmap.josm.gui.MainApplication; 18 18 import org.openstreetmap.josm.gui.MenuScroller; … … 189 189 * @param primitive the primitive 190 190 * @return a new collection of all presets matching the given preset. 191 * @see TaggingPreset#test( OsmPrimitive)192 * @since 9265193 */ 194 public static Collection<TaggingPreset> getMatchingPresets(final OsmPrimitive primitive) {191 * @see TaggingPreset#test(IPrimitive) 192 * @since 13623 (signature) 193 */ 194 public static Collection<TaggingPreset> getMatchingPresets(final IPrimitive primitive) { 195 195 return SubclassFilteredCollection.filter(getTaggingPresets(), preset -> preset.test(primitive)); 196 196 } -
trunk/src/org/openstreetmap/josm/tools/RotationAngle.java
r12756 r13623 4 4 import java.util.Locale; 5 5 6 import org.openstreetmap.josm.data.osm.IPrimitive; 6 7 import org.openstreetmap.josm.data.osm.Node; 7 8 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 22 23 final class WayDirectionRotationAngle implements RotationAngle { 23 24 @Override 24 public double getRotationAngle( OsmPrimitive p) {25 public double getRotationAngle(IPrimitive p) { 25 26 if (!(p instanceof Node)) { 26 27 return 0; … … 70 71 71 72 @Override 72 public double getRotationAngle( OsmPrimitive p) {73 public double getRotationAngle(IPrimitive p) { 73 74 return angle; 74 75 } … … 111 112 * @param p primitive 112 113 * @return rotation angle 114 * @since 13623 (signature) 113 115 */ 114 double getRotationAngle( OsmPrimitive p);116 double getRotationAngle(IPrimitive p); 115 117 116 118 /**
Note:
See TracChangeset
for help on using the changeset viewer.