Changeset 18444 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2022-05-10T18:54:08+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/ImageData.java
r18421 r18444 145 145 146 146 /** 147 * Select the first image of the sequence148 * @deprecated Use {@link #getFirstImage()} in conjunction with {@link #setSelectedImage}149 */150 @Deprecated151 public void selectFirstImage() {152 if (!data.isEmpty()) {153 setSelectedImageIndex(0);154 }155 }156 157 /**158 147 * Get the last image in the layer 159 148 * @return The last image … … 165 154 } 166 155 return null; 167 }168 169 /**170 * Select the last image of the sequence171 * @deprecated Use {@link #getLastImage()} with {@link #setSelectedImage}172 */173 @Deprecated174 public void selectLastImage() {175 setSelectedImageIndex(data.size() - 1);176 156 } 177 157 … … 207 187 208 188 /** 209 * Select the next image of the sequence210 * @deprecated Use {@link #getNextImage()} in conjunction with {@link #setSelectedImage}211 */212 @Deprecated213 public void selectNextImage() {214 if (hasNextImage()) {215 setSelectedImageIndex(selectedImagesIndex.get(0) + 1);216 }217 }218 219 /**220 189 * Get the image previous to the current image 221 190 * @return The previous image … … 235 204 public boolean hasPreviousImage() { 236 205 return (selectedImagesIndex.size() == 1 && selectedImagesIndex.get(0) - 1 > -1); 237 }238 239 /**240 * Select the previous image of the sequence241 * @deprecated Use {@link #getPreviousImage()} with {@link #setSelectedImage}242 */243 @Deprecated244 public void selectPreviousImage() {245 if (data.isEmpty()) {246 return;247 }248 setSelectedImageIndex(Integer.max(0, selectedImagesIndex.get(0) - 1));249 206 } 250 207
Note:
See TracChangeset
for help on using the changeset viewer.