Changeset 13810 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/Environment.java
- Timestamp:
- 2018-05-21T20:42:27+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/Environment.java
r12378 r13810 2 2 package org.openstreetmap.josm.gui.mappaint; 3 3 4 import org.openstreetmap.josm.data.osm. OsmPrimitive;4 import org.openstreetmap.josm.data.osm.IPrimitive; 5 5 import org.openstreetmap.josm.data.osm.Relation; 6 6 import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.Context; … … 18 18 * The primitive that is currently evaluated 19 19 */ 20 public OsmPrimitive osm;20 public IPrimitive osm; 21 21 22 22 /** … … 43 43 * is evaluated in a {@link LinkSelector} (within a child selector) 44 44 */ 45 public OsmPrimitive parent;45 public IPrimitive parent; 46 46 47 47 /** 48 48 * The same for parent selector. Only one of the 2 fields (parent or child) is not null in any environment. 49 49 */ 50 public OsmPrimitive child;50 public IPrimitive child; 51 51 52 52 /** … … 71 71 * @param osm OSM primitive 72 72 * @since 8415 73 */ 74 public Environment(OsmPrimitive osm) { 73 * @since 13810 (signature) 74 */ 75 public Environment(IPrimitive osm) { 75 76 this.osm = osm; 76 77 } … … 82 83 * @param layer layer 83 84 * @param source style source 84 */ 85 public Environment(OsmPrimitive osm, MultiCascade mc, String layer, StyleSource source) { 85 * @since 13810 (signature) 86 */ 87 public Environment(IPrimitive osm, MultiCascade mc, String layer, StyleSource source) { 86 88 this.osm = osm; 87 89 this.mc = mc; … … 114 116 * @return A clone of this environment, with the specified primitive 115 117 * @see #osm 116 */ 117 public Environment withPrimitive(OsmPrimitive osm) { 118 * @since 13810 (signature) 119 */ 120 public Environment withPrimitive(IPrimitive osm) { 118 121 Environment e = new Environment(this); 119 122 e.osm = osm; … … 126 129 * @return A clone of this environment, with the specified parent 127 130 * @see #parent 128 */ 129 public Environment withParent(OsmPrimitive parent) { 131 * @since 13810 (signature) 132 */ 133 public Environment withParent(IPrimitive parent) { 130 134 Environment e = new Environment(this); 131 135 e.parent = parent; … … 142 146 * @see #index 143 147 * @since 6175 144 */ 145 public Environment withParentAndIndexAndLinkContext(OsmPrimitive parent, int index, int count) { 148 * @since 13810 (signature) 149 */ 150 public Environment withParentAndIndexAndLinkContext(IPrimitive parent, int index, int count) { 146 151 Environment e = new Environment(this); 147 152 e.parent = parent; … … 157 162 * @return A clone of this environment, with the specified child 158 163 * @see #child 159 */ 160 public Environment withChild(OsmPrimitive child) { 164 * @since 13810 (signature) 165 */ 166 public Environment withChild(IPrimitive child) { 161 167 Environment e = new Environment(this); 162 168 e.child = child; … … 173 179 * @see #index 174 180 * @since 6175 175 */ 176 public Environment withChildAndIndexAndLinkContext(OsmPrimitive child, int index, int count) { 181 * @since 13810 (signature) 182 */ 183 public Environment withChildAndIndexAndLinkContext(IPrimitive child, int index, int count) { 177 184 Environment e = new Environment(this); 178 185 e.child = child;
Note:
See TracChangeset
for help on using the changeset viewer.