Changeset 17574 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2021-03-16T23:57:41+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
r16488 r17574 7 7 import java.util.Objects; 8 8 9 import org.openstreetmap.josm.data.ImageData; 9 10 import org.openstreetmap.josm.data.gpx.GpxImageEntry; 10 11 … … 16 17 17 18 private Image thumbnail; 19 private ImageData dataSet; 18 20 19 21 /** … … 76 78 77 79 @Override 80 public void applyTmp() { 81 super.applyTmp(); 82 if (this.dataSet != null) { 83 this.dataSet.fireNodeMoved(this); 84 } 85 } 86 87 @Override 88 public void discardTmp() { 89 super.discardTmp(); 90 if (this.dataSet != null) { 91 this.dataSet.fireNodeMoved(this); 92 } 93 } 94 95 /** 96 * Set the dataset for this image 97 * @param imageData The dataset 98 * @since xxx 99 */ 100 public void setDataSet(ImageData imageData) { 101 this.dataSet = imageData; 102 } 103 104 /** 105 * Get the dataset for this image 106 * @return The dataset 107 * @since xxx 108 */ 109 public ImageData getDataSet() { 110 return this.dataSet; 111 } 112 113 114 @Override 78 115 public int hashCode() { 79 116 return Objects.hash(super.hashCode(), thumbnail);
Note:
See TracChangeset
for help on using the changeset viewer.