Changeset 12303 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/RepeatImageElement.java
- Timestamp:
- 2017-06-02T21:39:27+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/RepeatImageElement.java
r12259 r12303 22 22 */ 23 23 public enum LineImageAlignment { 24 /** 25 * Align it to the top side of the line 26 */ 24 27 TOP(.5), 28 /** 29 * Align it to the center of the line 30 */ 25 31 CENTER(0), 32 /** 33 * Align it to the bottom of the line 34 */ 26 35 BOTTOM(-.5); 27 36 … … 41 50 } 42 51 52 /** 53 * The image to draw on the line repeatedly 54 */ 43 55 public MapImage pattern; 56 /** 57 * The offset to the side of the way 58 */ 44 59 public float offset; 60 /** 61 * The space between the images 62 */ 45 63 public float spacing; 64 /** 65 * The offset of the first image along the way 66 */ 46 67 public float phase; 68 /** 69 * The alignment of the image 70 */ 47 71 public LineImageAlignment align; 48 72 … … 50 74 null, null}; 51 75 76 /** 77 * Create a new image element 78 * @param c The cascade 79 * @param pattern The image to draw on the line repeatedly 80 * @param offset The offset to the side of the way 81 * @param spacing The space between the images 82 * @param phase The offset of the first image along the way 83 * @param align The alignment of the image 84 */ 52 85 public RepeatImageElement(Cascade c, MapImage pattern, float offset, float spacing, float phase, LineImageAlignment align) { 53 86 super(c, 2.9f); … … 61 94 } 62 95 96 /** 97 * Create a RepeatImageElement from the given environment 98 * @param env The environment 99 * @return The image style element or <code>null</code> if none should be painted 100 */ 63 101 public static RepeatImageElement create(Environment env) { 64 102 MapImage pattern = NodeElement.createIcon(env, REPEAT_IMAGE_KEYS);
Note:
See TracChangeset
for help on using the changeset viewer.