Changeset 8906 in josm for trunk/src/org
- Timestamp:
- 2015-10-19T14:00:49+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
r8846 r8906 42 42 public EastNorth add(EastNorth other) { 43 43 return new EastNorth(x+other.x, y+other.y); 44 }45 46 /**47 * Subtracts the coordinates of this EastNorth instance from the other one.48 * <p>49 * This produces result = en2 - this.50 * @param en2 The instance to subtract this one from.51 * @return The new EastNorth position.52 * @deprecated use {@code subtract} on the other EastNorth instead53 */54 @Deprecated55 public EastNorth sub(EastNorth en2) {56 return en2.subtract(this);57 44 } 58 45 -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r8870 r8906 598 598 599 599 /** 600 * @deprecated Use {@link #addMenu(String, String, int, int, String)} instead.601 */602 // Kept for compatibility with plugins603 @Deprecated604 public JMenu addMenu(String name, int mnemonicKey, int position, String relativeHelpTopic) {605 return addMenu(name, tr(name), mnemonicKey, position, relativeHelpTopic);606 }607 608 /**609 600 * Creates a menu and adds it on the given position to the main menu. 610 601 * -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8870 r8906 75 75 } 76 76 77 /**78 * Interface to notify listeners of the change of the system of measurement.79 * @since 605680 * @deprecated use {@link org.openstreetmap.josm.data.SystemOfMeasurement.SoMChangeListener} instead.81 */82 @Deprecated83 public interface SoMChangeListener extends SystemOfMeasurement.SoMChangeListener {84 }85 86 77 public transient Predicate<OsmPrimitive> isSelectablePredicate = new Predicate<OsmPrimitive>() { 87 78 @Override … … 132 123 l.zoomChanged(); 133 124 } 134 }135 136 137 /**138 * Removes a SoM change listener.139 *140 * @param listener the listener. Ignored if null or already absent141 * @since 6056142 * @deprecated use {@link SystemOfMeasurement#removeSoMChangeListener} instead.143 */144 @Deprecated145 public static void removeSoMChangeListener(NavigatableComponent.SoMChangeListener listener) {146 SystemOfMeasurement.removeSoMChangeListener(listener);147 }148 149 /**150 * Adds a SoM change listener151 *152 * @param listener the listener. Ignored if null or already registered.153 * @since 6056154 * @deprecated use {@link SystemOfMeasurement#addSoMChangeListener} instead.155 */156 @Deprecated157 public static void addSoMChangeListener(NavigatableComponent.SoMChangeListener listener) {158 SystemOfMeasurement.addSoMChangeListener(listener);159 }160 161 /**162 * Returns the current system of measurement.163 * @return The current system of measurement (metric system by default).164 * @since 3490165 * @deprecated use {@link SystemOfMeasurement#getSystemOfMeasurement} instead.166 */167 @Deprecated168 public static SystemOfMeasurement getSystemOfMeasurement() {169 return SystemOfMeasurement.getSystemOfMeasurement();170 }171 172 /**173 * Sets the current system of measurement.174 * @param somKey The system of measurement key. Must be defined in {@link SystemOfMeasurement#ALL_SYSTEMS}.175 * @throws IllegalArgumentException if {@code somKey} is not known176 * @since 6056177 * @deprecated use {@link SystemOfMeasurement#setSystemOfMeasurement} instead.178 */179 @Deprecated180 public static void setSystemOfMeasurement(String somKey) {181 SystemOfMeasurement.setSystemOfMeasurement(somKey);182 125 } 183 126 -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r8851 r8906 140 140 } 141 141 142 /**143 * Checks that WMS layer is a grabber-compatible one (HTML or WMS).144 * @throws IllegalStateException if imagery time is neither HTML nor WMS145 * @since 8068146 * @deprecated not implemented anymore147 */148 @Deprecated149 public void checkGrabberType() {150 // not implemented151 }152 153 142 @Override 154 143 protected Class<? extends TileLoader> getTileLoaderClass() {
Note:
See TracChangeset
for help on using the changeset viewer.