Changeset 8722 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-09-03T15:04:13+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java
r8624 r8722 11 11 */ 12 12 public class ImageOverlay { 13 /** the image res source to use as overlay */13 /** the image resource to use as overlay */ 14 14 public ImageProvider image; 15 15 /** offset of the image from left border, values between 0 and 1 */ … … 26 26 * is the result of the difference between left/right and top/bottom. 27 27 * 28 * @param image image rprovider for the overlay icon28 * @param image image provider for the overlay icon 29 29 * @param offsetLeft offset of the image from left border, values between 0 and 1, -1 for auto-calculation 30 30 * @param offsetTop offset of the image from top border, values between 0 and 1, -1 for auto-calculation … … 46 46 * Right and bottom values are set to 1. 47 47 * 48 * @param image image rprovider for the overlay icon48 * @param image image provider for the overlay icon 49 49 * @see #ImageOverlay(ImageProvider, double, double, double, double) 50 50 * @since 8095 … … 75 75 } 76 76 if (offsetTop > 0 && offsetBottom > 0) { 77 width= (int) (h*(offsetBottom-offsetTop));77 height = (int) (h*(offsetBottom-offsetTop)); 78 78 } 79 79 ImageIcon overlay;
Note:
See TracChangeset
for help on using the changeset viewer.