Changeset 8206 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/Environment.java
- Timestamp:
- 2015-04-17T23:06:34+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/Environment.java
r7509 r8206 38 38 */ 39 39 public Integer index = null; 40 41 /** 42 * count of nodes in parent way or members in parent relation. Must be != null in LINK context. 43 */ 44 public Integer count = null; 40 45 41 46 /** … … 69 74 this.source = other.source; 70 75 this.index = other.index; 76 this.count = other.count; 71 77 this.context = other.getContext(); 72 78 } … … 99 105 * @param parent the matching parent object 100 106 * @param index index of node in parent way or member in parent relation 107 * @param count count of nodes in parent way or members in parent relation 101 108 * @return A clone of this environment, with the specified parent, index, and context set to {@link Context#LINK} 102 109 * @since 6175 … … 104 111 * @see #index 105 112 */ 106 public Environment withParentAndIndexAndLinkContext(OsmPrimitive parent, int index ) {113 public Environment withParentAndIndexAndLinkContext(OsmPrimitive parent, int index, int count) { 107 114 Environment e = new Environment(this); 108 115 e.parent = parent; 109 116 e.index = index; 117 e.count = count; 110 118 e.context = Context.LINK; 111 119 return e; … … 128 136 * @param child the matching child object 129 137 * @param index index of node in parent way or member in parent relation 138 * @param count count of nodes in parent way or members in parent relation 130 139 * @return A clone of this environment, with the specified child, index, and context set to {@code Context#LINK} 131 140 * @since 6175 … … 133 142 * @see #index 134 143 */ 135 public Environment withChildAndIndexAndLinkContext(OsmPrimitive child, int index ) {144 public Environment withChildAndIndexAndLinkContext(OsmPrimitive child, int index, int count) { 136 145 Environment e = new Environment(this); 137 146 e.child = child; 138 147 e.index = index; 148 e.count = count; 139 149 e.context = Context.LINK; 140 150 return e; … … 144 154 * Creates a clone of this environment, with the specified index. 145 155 * @param index index of node in parent way or member in parent relation 156 * @param count count of nodes in parent way or members in parent relation 146 157 * @return A clone of this environment, with the specified index 147 158 * @see #index 148 159 */ 149 public Environment withIndex(int index ) {160 public Environment withIndex(int index, int count) { 150 161 Environment e = new Environment(this); 151 162 e.index = index; 163 e.count = count; 152 164 return e; 153 165 } … … 214 226 child = null; 215 227 index = null; 228 count = null; 216 229 } 217 230
Note:
See TracChangeset
for help on using the changeset viewer.