Changeset 10484 in josm for trunk/src/org
- Timestamp:
- 2016-06-24T22:35:50+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java
r10433 r10484 36 36 import org.openstreetmap.josm.gui.io.UploadNoteLayerTask; 37 37 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 38 import org.openstreetmap.josm.gui.util.GuiSizesHelper;39 38 import org.openstreetmap.josm.io.NoteExporter; 40 39 import org.openstreetmap.josm.io.OsmApi; … … 108 107 @Override 109 108 public void paint(Graphics2D g, MapView mv, Bounds box) { 110 final int iconHeight = GuiSizesHelper.getSizeDpiAdjusted(ImageProvider.ImageSizes.SMALLICON.getVirtualHeight());111 final int iconWidth = GuiSizesHelper.getSizeDpiAdjusted(ImageProvider.ImageSizes.SMALLICON.getVirtualWidth());109 final int iconHeight = ImageProvider.ImageSizes.SMALLICON.getAdjustedHeight(); 110 final int iconWidth = ImageProvider.ImageSizes.SMALLICON.getAdjustedWidth(); 112 111 113 112 for (Note note : noteData.getNotes()) { … … 247 246 double snapDistance = 10; 248 247 double minDistance = Double.MAX_VALUE; 249 final int iconHeight = GuiSizesHelper.getSizeDpiAdjusted(ImageProvider.ImageSizes.SMALLICON.getVirtualHeight());248 final int iconHeight = ImageProvider.ImageSizes.SMALLICON.getAdjustedHeight(); 250 249 Note closestNote = null; 251 250 for (Note note : noteData.getNotes()) { -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r10462 r10484 208 208 * Returns the image width in virtual pixels 209 209 * @return the image width in virtual pixels 210 * @since 9705 210 211 */ 211 212 public int getVirtualWidth() { … … 220 221 public int getVirtualHeight() { 221 222 return virtualHeight; 223 } 224 225 /** 226 * Returns the image width in pixels to use for display 227 * @return the image width in pixels to use for display 228 * @since 10484 229 */ 230 public int getAdjustedWidth() { 231 return GuiSizesHelper.getSizeDpiAdjusted(virtualWidth); 232 } 233 234 /** 235 * Returns the image height in pixels to use for display 236 * @return the image height in pixels to use for display 237 * @since 10484 238 */ 239 public int getAdjustedHeight() { 240 return GuiSizesHelper.getSizeDpiAdjusted(virtualHeight); 222 241 } 223 242
Note:
See TracChangeset
for help on using the changeset viewer.