Changeset 6830 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2014-02-10T00:51:53+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Bounds.java
r6822 r6830 30 30 /** 31 31 * Returns min latitude of bounds. Efficient shortcut for {@code getMin().lat()}. 32 * 32 * 33 33 * @return min latitude of bounds. 34 34 * @since 6203 … … 40 40 /** 41 41 * Returns min longitude of bounds. Efficient shortcut for {@code getMin().lon()}. 42 * 42 * 43 43 * @return min longitude of bounds. 44 44 * @since 6203 … … 54 54 /** 55 55 * Returns max latitude of bounds. Efficient shortcut for {@code getMax().lat()}. 56 * 56 * 57 57 * @return max latitude of bounds. 58 58 * @since 6203 … … 64 64 /** 65 65 * Returns max longitude of bounds. Efficient shortcut for {@code getMax().lon()}. 66 * 66 * 67 67 * @return max longitude of bounds. 68 68 * @since 6203 … … 95 95 * Single point Bounds defined by lat/lon {@code b}. 96 96 * Coordinates will be rounded to osm precision if {@code roundToOsmPrecision} is true. 97 * 97 * 98 98 * @param b lat/lon of given point. 99 99 * @param roundToOsmPrecision defines if lat/lon will be rounded. … … 102 102 this(b.lat(), b.lon(), roundToOsmPrecision); 103 103 } 104 104 105 105 /** 106 106 * Single point Bounds defined by point [lat,lon]. 107 107 * Coordinates will be rounded to osm precision if {@code roundToOsmPrecision} is true. 108 * 108 * 109 109 * @param lat latitude of given point. 110 110 * @param lon longitude of given point. … … 232 232 * 233 233 * @param center the center coordinate pair. Must not be null. 234 * @param latExtent the latitude extent. >0 required.235 * @param lonExtent the longitude extent. >0 required.234 * @param latExtent the latitude extent. > 0 required. 235 * @param lonExtent the longitude extent. > 0 required. 236 236 * @throws IllegalArgumentException thrown if center is null 237 * @throws IllegalArgumentException thrown if latExtent <= 0238 * @throws IllegalArgumentException thrown if lonExtent <= 0237 * @throws IllegalArgumentException thrown if latExtent <= 0 238 * @throws IllegalArgumentException thrown if lonExtent <= 0 239 239 */ 240 240 public Bounds(LatLon center, double latExtent, double lonExtent) { 241 241 CheckParameterUtil.ensureParameterNotNull(center, "center"); 242 242 if (latExtent <= 0.0) 243 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0.0 exp tected, got {1}", "latExtent", latExtent));243 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0.0 expected, got {1}", "latExtent", latExtent)); 244 244 if (lonExtent <= 0.0) 245 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0.0 exp tected, got {1}", "lonExtent", lonExtent));245 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0.0 expected, got {1}", "lonExtent", lonExtent)); 246 246 247 247 this.minLat = LatLon.roundToOsmPrecision(LatLon.toIntervalLat(center.lat() - latExtent / 2)); … … 253 253 /** 254 254 * Creates BBox with same coordinates. 255 * 255 * 256 256 * @return BBox with same coordinates. 257 257 * @since 6203 … … 260 260 return new BBox(minLon, minLat, maxLon, maxLat); 261 261 } 262 262 263 263 @Override public String toString() { 264 264 return "Bounds["+minLat+","+minLon+","+maxLat+","+maxLon+"]"; … … 277 277 */ 278 278 public LatLon getCenter() { 279 if (crosses180thMeridian()) { 279 if (crosses180thMeridian()) { 280 280 double lat = (minLat + maxLat) / 2; 281 281 double lon = (minLon + maxLon - 360.0) / 2; … … 296 296 extend(ll.lat(), ll.lon()); 297 297 } 298 298 299 299 /** 300 300 * Extend the bounds if necessary to include the given point [lat,lon]. … … 358 358 /** 359 359 * The two bounds intersect? Compared to java Shape.intersects, if does not use 360 * the interior but the closure. (" >=" instead of ">")360 * the interior but the closure. (">=" instead of ">") 361 361 */ 362 362 public boolean intersects(Bounds b) { … … 413 413 */ 414 414 public boolean isCollapsed() { 415 return Double.doubleToLongBits(minLat) == Double.doubleToLongBits(maxLat) 415 return Double.doubleToLongBits(minLat) == Double.doubleToLongBits(maxLat) 416 416 && Double.doubleToLongBits(minLon) == Double.doubleToLongBits(maxLon); 417 417 } -
trunk/src/org/openstreetmap/josm/data/ProjectionBounds.java
r6380 r6830 67 67 /** 68 68 * The two bounds intersect? Compared to java Shape.intersects, if does not use 69 * the interior but the closure. (" >=" instead of ">")69 * the interior but the closure. (">=" instead of ">") 70 70 */ 71 71 public boolean intersects(ProjectionBounds b) { -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r6566 r6830 30 30 * where valid values are in the [-180,180] and positive values specify positions east of the prime meridian. 31 31 * <br> 32 * <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Latitude_and_Longitude_of_the_Earth.svg/500px-Latitude_and_Longitude_of_the_Earth.svg.png">32 * <img alt="lat/lon" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Latitude_and_Longitude_of_the_Earth.svg/500px-Latitude_and_Longitude_of_the_Earth.svg.png"> 33 33 * <br> 34 34 * This class is immutable. … … 292 292 * 293 293 * @param other the "destination" position 294 * @return heading in the range 0 <= hd <2*PI294 * @return heading in the range 0 <= hd < 2*PI 295 295 */ 296 296 public double heading(LatLon other) { -
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r6380 r6830 14 14 /** 15 15 * Objects of this class represent a gpx file with tracks, waypoints and routes. 16 * It uses GPX v1.1, see {@link <a href="http://www.topografix.com/GPX/1/1/">the spec</a>}16 * It uses GPX v1.1, see <a href="http://www.topografix.com/GPX/1/1/">the spec</a> 17 17 * for details. 18 18 * 19 * @author Raphael Mack <ramack@raphael-mack.de>19 * @author Raphael Mack <ramack@raphael-mack.de> 20 20 */ 21 21 public class GpxData extends WithAttributes { … … 255 255 }; 256 256 } 257 257 258 258 /** 259 259 * Iterates over all track segments and then over all routes. … … 320 320 } 321 321 } 322 322 323 323 } -
trunk/src/org/openstreetmap/josm/data/gpx/WithAttributes.java
r6142 r6830 11 11 * Base class for various classes in the GPX model. 12 12 * 13 * @author Frederik Ramm <frederik@remote.org>13 * @author Frederik Ramm 14 14 * @since 444 15 15 */ -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r6690 r6830 27 27 * Class that stores info about an image background layer. 28 28 * 29 * @author Frederik Ramm <frederik@remote.org>29 * @author Frederik Ramm 30 30 */ 31 31 public class ImageryInfo implements Comparable<ImageryInfo>, Attributed { … … 83 83 */ 84 84 public static class ImageryBounds extends Bounds { 85 85 86 86 /** 87 87 * Constructs a new {@code ImageryBounds} from string. -
trunk/src/org/openstreetmap/josm/data/imagery/types/EntryType.java
r6069 r6830 25 25 * 26 26 * <pre> 27 * <complexType name="entry" >28 * <complexContent >29 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType" >30 * <sequence >31 * <element name="pixelPerDegree" type="{http://www.w3.org/2001/XMLSchema}double"/ >32 * <element name="east" type="{http://www.w3.org/2001/XMLSchema}double"/ >33 * <element name="north" type="{http://www.w3.org/2001/XMLSchema}double"/ >34 * <element name="lastUsed" type="{http://www.w3.org/2001/XMLSchema}date"/ >35 * <element name="lastModified" type="{http://www.w3.org/2001/XMLSchema}date"/ >36 * <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string"/ >37 * </sequence >38 * </restriction >39 * </complexContent >40 * </complexType >27 * <complexType name="entry"> 28 * <complexContent> 29 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 30 * <sequence> 31 * <element name="pixelPerDegree" type="{http://www.w3.org/2001/XMLSchema}double"/> 32 * <element name="east" type="{http://www.w3.org/2001/XMLSchema}double"/> 33 * <element name="north" type="{http://www.w3.org/2001/XMLSchema}double"/> 34 * <element name="lastUsed" type="{http://www.w3.org/2001/XMLSchema}date"/> 35 * <element name="lastModified" type="{http://www.w3.org/2001/XMLSchema}date"/> 36 * <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string"/> 37 * </sequence> 38 * </restriction> 39 * </complexContent> 40 * </complexType> 41 41 * </pre> 42 *43 42 * 44 43 */ -
trunk/src/org/openstreetmap/josm/data/imagery/types/ProjectionType.java
r6069 r6830 5 5 // Generated on: 2011.01.09 at 07:33:18 PM CET 6 6 // 7 8 9 7 package org.openstreetmap.josm.data.imagery.types; 10 8 11 9 import java.util.ArrayList; 12 10 import java.util.List; 11 13 12 import javax.xml.bind.annotation.XmlAccessType; 14 13 import javax.xml.bind.annotation.XmlAccessorType; 15 14 import javax.xml.bind.annotation.XmlAttribute; 16 15 import javax.xml.bind.annotation.XmlType; 17 18 16 19 17 /** … … 23 21 * 24 22 * <pre> 25 * <complexType name="projection" >26 * <complexContent >27 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType" >28 * <sequence >29 * <element name="entry" type="{http://josm.openstreetmap.de/wms-cache}entry" maxOccurs="unbounded" minOccurs="0"/ >30 * </sequence >31 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" / >32 * <attribute name="cache-directory" type="{http://www.w3.org/2001/XMLSchema}string" / >33 * </restriction >34 * </complexContent >35 * </complexType >23 * <complexType name="projection"> 24 * <complexContent> 25 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 26 * <sequence> 27 * <element name="entry" type="{http://josm.openstreetmap.de/wms-cache}entry" maxOccurs="unbounded" minOccurs="0"/> 28 * </sequence> 29 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 30 * <attribute name="cache-directory" type="{http://www.w3.org/2001/XMLSchema}string" /> 31 * </restriction> 32 * </complexContent> 33 * </complexType> 36 34 * </pre> 37 *38 35 * 39 36 */ -
trunk/src/org/openstreetmap/josm/data/imagery/types/WmsCacheType.java
r6069 r6830 5 5 // Generated on: 2011.01.09 at 07:33:18 PM CET 6 6 // 7 8 9 7 package org.openstreetmap.josm.data.imagery.types; 10 8 11 9 import java.util.ArrayList; 12 10 import java.util.List; 11 13 12 import javax.xml.bind.annotation.XmlAccessType; 14 13 import javax.xml.bind.annotation.XmlAccessorType; … … 16 15 import javax.xml.bind.annotation.XmlRootElement; 17 16 import javax.xml.bind.annotation.XmlType; 18 19 17 20 18 /** … … 24 22 * 25 23 * <pre> 26 * <complexType >27 * <complexContent >28 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType" >29 * <sequence >30 * <element name="projection" type="{http://josm.openstreetmap.de/wms-cache}projection" maxOccurs="unbounded" minOccurs="0"/ >31 * </sequence >32 * <attribute name="tileSize" use="required" type="{http://www.w3.org/2001/XMLSchema}int" / >33 * <attribute name="totalFileSize" use="required" type="{http://www.w3.org/2001/XMLSchema}int" / >34 * </restriction >35 * </complexContent >36 * </complexType >24 * <complexType> 25 * <complexContent> 26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 27 * <sequence> 28 * <element name="projection" type="{http://josm.openstreetmap.de/wms-cache}projection" maxOccurs="unbounded" minOccurs="0"/> 29 * </sequence> 30 * <attribute name="tileSize" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> 31 * <attribute name="totalFileSize" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> 32 * </restriction> 33 * </complexContent> 34 * </complexType> 37 35 * </pre> 38 *39 36 * 40 37 */ -
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r6821 r6830 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.osm; 3 4 import org.openstreetmap.josm.tools.Utils;5 3 6 4 import static org.openstreetmap.josm.tools.I18n.tr; … … 19 17 import java.util.concurrent.atomic.AtomicLong; 20 18 19 import org.openstreetmap.josm.tools.Utils; 20 21 21 /** 22 22 * Abstract class to represent common features of the datatypes primitives. … … 160 160 /** 161 161 * 162 * @return True if primitive is new (not yet uploaded the server, id <= 0)162 * @return True if primitive is new (not yet uploaded the server, id <= 0) 163 163 */ 164 164 @Override … … 184 184 * is set to false. 185 185 * 186 * @param id the id. >0 required187 * @param version the version >0 required188 * @throws IllegalArgumentException thrown if id <= 0189 * @throws IllegalArgumentException thrown if version <= 0186 * @param id the id. > 0 required 187 * @param version the version > 0 required 188 * @throws IllegalArgumentException thrown if id <= 0 189 * @throws IllegalArgumentException thrown if version <= 0 190 190 * @throws DataIntegrityProblemException If id is changed and primitive was already added to the dataset 191 191 */ … … 256 256 * primitive. 257 257 * 258 * @param changesetId the id. >= 0 required.258 * @param changesetId the id. >= 0 required. 259 259 * @throws IllegalStateException thrown if this primitive is new. 260 * @throws IllegalArgumentException thrown if id <0260 * @throws IllegalArgumentException thrown if id < 0 261 261 */ 262 262 @Override -
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r6380 r6830 52 52 53 53 /** 54 * Creates a changeset with id <code>id</code>. If id >0, sets incomplete to true.54 * Creates a changeset with id <code>id</code>. If id > 0, sets incomplete to true. 55 55 * 56 56 * @param id the id -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r6643 r6830 778 778 * exists 779 779 * 780 * @param id uniqueId of the primitive. Might be <0 for newly created primitives780 * @param id uniqueId of the primitive. Might be < 0 for newly created primitives 781 781 * @param type the type of the primitive. Must not be null. 782 782 * @return the primitive -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r6639 r6830 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.osm; 3 4 import java.util.Collection; 5 import java.util.Set; 6 import java.util.TreeSet; 3 7 4 8 import org.openstreetmap.josm.Main; … … 11 15 import org.openstreetmap.josm.tools.Predicate; 12 16 import org.openstreetmap.josm.tools.Utils; 13 14 import java.util.Collection;15 import java.util.Set;16 import java.util.TreeSet;17 17 18 18 /** … … 139 139 /** 140 140 * Constructs an incomplete {@code Node} object with the given id. 141 * @param id The id. Must be >= 0142 * @throws IllegalArgumentException if id <0141 * @param id The id. Must be >= 0 142 * @throws IllegalArgumentException if id < 0 143 143 */ 144 144 public Node(long id) throws IllegalArgumentException { … … 148 148 /** 149 149 * Constructs a new {@code Node} with the given id and version. 150 * @param id The id. Must be >= 0150 * @param id The id. Must be >= 0 151 151 * @param version The version 152 * @throws IllegalArgumentException if id <0152 * @throws IllegalArgumentException if id < 0 153 153 */ 154 154 public Node(long id, int version) throws IllegalArgumentException { -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r6733 r6830 241 241 * Creates a new primitive for the given id. 242 242 * 243 * If allowNegativeId is set, provided id can be <0 and will be set to primitive without any processing.243 * If allowNegativeId is set, provided id can be < 0 and will be set to primitive without any processing. 244 244 * If allowNegativeId is not set, then id will have to be 0 (in that case new unique id will be generated) or 245 245 * positive number. … … 247 247 * @param id the id 248 248 * @param allowNegativeId 249 * @throws IllegalArgumentException thrown if id <0 and allowNegativeId is false249 * @throws IllegalArgumentException thrown if id < 0 and allowNegativeId is false 250 250 */ 251 251 protected OsmPrimitive(long id, boolean allowNegativeId) throws IllegalArgumentException { … … 269 269 * Creates a new primitive for the given id and version. 270 270 * 271 * If allowNegativeId is set, provided id can be <0 and will be set to primitive without any processing.271 * If allowNegativeId is set, provided id can be < 0 and will be set to primitive without any processing. 272 272 * If allowNegativeId is not set, then id will have to be 0 (in that case new unique id will be generated) or 273 273 * positive number. 274 274 * 275 * If id is not >0 version is ignored and set to 0.275 * If id is not > 0 version is ignored and set to 0. 276 276 * 277 277 * @param id 278 278 * @param version 279 279 * @param allowNegativeId 280 * @throws IllegalArgumentException thrown if id <0 and allowNegativeId is false280 * @throws IllegalArgumentException thrown if id < 0 and allowNegativeId is false 281 281 */ 282 282 protected OsmPrimitive(long id, int version, boolean allowNegativeId) throws IllegalArgumentException { … … 356 356 * is set to false. 357 357 * 358 * @param id the id. >0 required359 * @param version the version >0 required360 * @throws IllegalArgumentException thrown if id <= 0361 * @throws IllegalArgumentException thrown if version <= 0358 * @param id the id. > 0 required 359 * @param version the version > 0 required 360 * @throws IllegalArgumentException thrown if id <= 0 361 * @throws IllegalArgumentException thrown if version <= 0 362 362 * @throws DataIntegrityProblemException If id is changed and primitive was already added to the dataset 363 363 */ … … 1143 1143 * semantic attributes. 1144 1144 * <ol> 1145 * <li>equal id</ ol>1145 * <li>equal id</li> 1146 1146 * <li>both are complete or both are incomplete</li> 1147 1147 * <li>both have the same tags</li> … … 1165 1165 * technical attributes. The attributes: 1166 1166 * <ol> 1167 * <li>deleted</ ol>1168 * <li>modified</ ol>1169 * <li>timestamp</ ol>1170 * <li>version</ ol>1171 * <li>visible</ ol>1172 * <li>user</ ol>1167 * <li>deleted</li> 1168 * <li>modified</li> 1169 * <li>timestamp</li> 1170 * <li>version</li> 1171 * <li>visible</li> 1172 * <li>user</li> 1173 1173 * </ol> 1174 1174 * have to be equal -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r6717 r6830 21 21 * An relation, having a set of tags and any number (0...n) of members. 22 22 * 23 * @author Frederik Ramm <frederik@remote.org>23 * @author Frederik Ramm 24 24 */ 25 25 public final class Relation extends OsmPrimitive implements IRelation { … … 204 204 205 205 /** 206 * Creates a new relation for the given id. If the id >0, the way is marked206 * Creates a new relation for the given id. If the id > 0, the way is marked 207 207 * as incomplete. 208 208 * 209 * @param id the id. >0 required210 * @throws IllegalArgumentException thrown if id <0209 * @param id the id. > 0 required 210 * @throws IllegalArgumentException thrown if id < 0 211 211 */ 212 212 public Relation(long id) throws IllegalArgumentException { -
trunk/src/org/openstreetmap/josm/data/osm/RelationMemberData.java
r6069 r6830 48 48 49 49 /** 50 * PrimitiveId implementation. Returns the same value as {@link #getMemberId() ()}50 * PrimitiveId implementation. Returns the same value as {@link #getMemberId()} 51 51 */ 52 52 @Override -
trunk/src/org/openstreetmap/josm/data/osm/Storage.java
r6717 r6830 14 14 * A Set-like class that allows looking up equivalent preexising instance. 15 15 * It is useful whereever one would use self-mapping construct like 16 * <code>Map <T,T>.put(t,t), that is, for caches, uniqueness filters or similar.16 * <code>Map<T,T>.put(t,t)</code>, that is, for caches, uniqueness filters or similar. 17 17 * 18 18 * The semantics of equivalency can be external to the object, using the … … 24 24 * <ul><li>A String cache: 25 25 * <pre> 26 * Storage <String>cache = new Storage(); // use default Hash26 * Storage<String> cache = new Storage(); // use default Hash 27 27 * for (String input : data) { 28 28 * String onlyOne = cache.putIfUnique(input); … … 32 32 * <li>Identity-based set: 33 33 * <pre> 34 * Storage <Object> identity = new Storage(new Hash<Object,Object>{34 * Storage<Object> identity = new Storage(new Hash<Object,Object> { 35 35 * public int getHashCode(Object o) { 36 36 * return System.identityHashCode(o); … … 44 44 * <pre> 45 45 * class Thing { int id; } 46 * Storage <Thing> things = new Storage(new Hash<Thing,Thing>() {46 * Storage<Thing> things = new Storage(new Hash<Thing,Thing>() { 47 47 * public int getHashCode(Thing t) { 48 48 * return t.id; … … 52 52 * } 53 53 * }); 54 * Map <Integer,Thing> fk = things.foreignKey(new Hash<Integer,Thing>() {54 * Map<Integer,Thing> fk = things.foreignKey(new Hash<Integer,Thing>() { 55 55 * public int getHashCode(Integer i) { 56 56 * return i.getIntValue(); … … 64 64 * assert things.get(new Thing(3)) == fk.get(3); 65 65 * </pre></li> 66 * 66 * </ul> 67 67 * 68 68 * @author nenik -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r6717 r6830 126 126 * @param index the position 127 127 * @return the node at position <code>index</code> 128 * @exception IndexOutOfBoundsException thrown if <code>index</code> <0129 * or <code>index</code> >= {@link #getNodesCount()}128 * @exception IndexOutOfBoundsException thrown if <code>index</code> < 0 129 * or <code>index</code> >= {@link #getNodesCount()} 130 130 * @since 1862 131 131 */ … … 254 254 255 255 /** 256 * Contructs a new {@code Way} for the given id. If the id >0, the way is marked256 * Contructs a new {@code Way} for the given id. If the id > 0, the way is marked 257 257 * as incomplete. If id == 0 then way is marked as new 258 258 * 259 * @param id the id. >= 0 required260 * @throws IllegalArgumentException if id <0259 * @param id the id. >= 0 required 260 * @throws IllegalArgumentException if id < 0 261 261 * @since 343 262 262 */ … … 267 267 /** 268 268 * Contructs a new {@code Way} with given id and version. 269 * @param id the id. >= 0 required269 * @param id the id. >= 0 required 270 270 * @param version the version 271 * @throws IllegalArgumentException if id <0271 * @throws IllegalArgumentException if id < 0 272 272 * @since 2620 273 273 */ -
trunk/src/org/openstreetmap/josm/data/osm/event/AbstractDatasetChangedEvent.java
r5170 r6830 22 22 /** 23 23 * Returns list of primitives modified by this event. 24 * <br />24 * <br> 25 25 * <strong>WARNING</strong> This value might be incorrect in case 26 26 * of {@link DataChangedEvent}. It returns all primitives in the dataset -
trunk/src/org/openstreetmap/josm/data/osm/history/History.java
r6623 r6830 43 43 * Creates a new history for an OSM primitive 44 44 * 45 * @param id the id. >0 required.45 * @param id the id. > 0 required. 46 46 * @param type the primitive type. Must not be null. 47 47 * @param versions a list of versions. Can be null. 48 * @throws IllegalArgumentException thrown if id <= 048 * @throws IllegalArgumentException thrown if id <= 0 49 49 * @throws IllegalArgumentException if type is null 50 50 * -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryDataSet.java
r6449 r6830 83 83 * and version <code>version</code>. null, if no such primitive exists. 84 84 * 85 * @param id the id of the primitive. >0 required.85 * @param id the id of the primitive. > 0 required. 86 86 * @param type the primitive type. Must not be null. 87 * @param version the version of the primitive. >0 required87 * @param version the version of the primitive. > 0 required 88 88 * @return the history primitive for the primitive with id <code>id</code>, 89 89 * type <code>type</code>, and version <code>version</code> … … 135 135 * and type <code>type</code>. 136 136 * 137 * @param id the id the if of the primitive. >0 required137 * @param id the id the if of the primitive. > 0 required 138 138 * @param type the type of the primitive. Must not be null. 139 139 * @return the history. null, if there isn't a history for <code>id</code> and 140 140 * <code>type</code>. 141 * @throws IllegalArgumentException thrown if id <= 0141 * @throws IllegalArgumentException thrown if id <= 0 142 142 * @throws IllegalArgumentException thrown if type is null 143 143 */ -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java
r6069 r6830 22 22 * Constructs a new {@code HistoryNode}. 23 23 * 24 * @param id the id ( >0 required)25 * @param version the version ( >0 required)24 * @param id the id (> 0 required) 25 * @param version the version (> 0 required) 26 26 * @param visible whether the node is still visible 27 * @param user the user (! null required)28 * @param changesetId the changeset id ( >0 required)29 * @param timestamp the timestamp (! null required)27 * @param user the user (!= null required) 28 * @param changesetId the changeset id (> 0 required) 29 * @param timestamp the timestamp (!= null required) 30 30 * @param coords the coordinates 31 31 * @throws IllegalArgumentException if preconditions are violated … … 39 39 * This is needed to build virtual HistoryNodes for modified nodes, which do not have a timestamp and a changeset id. 40 40 * 41 * @param id the id ( >0 required)42 * @param version the version ( >0 required)41 * @param id the id (> 0 required) 42 * @param version the version (> 0 required) 43 43 * @param visible whether the node is still visible 44 * @param user the user (! null required)45 * @param changesetId the changeset id ( >0 required if {@code checkHistoricParams} is true)46 * @param timestamp the timestamp (! null required if {@code checkHistoricParams} is true)44 * @param user the user (!= null required) 45 * @param changesetId the changeset id (> 0 required if {@code checkHistoricParams} is true) 46 * @param timestamp the timestamp (!= null required if {@code checkHistoricParams} is true) 47 47 * @param coords the coordinates 48 48 * @param checkHistoricParams if true, checks values of {@code changesetId} and {@code timestamp} -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java
r6440 r6830 47 47 * Constructs a new {@code HistoryOsmPrimitive}. 48 48 * 49 * @param id the id ( >0 required)50 * @param version the version ( >0 required)49 * @param id the id (> 0 required) 50 * @param version the version (> 0 required) 51 51 * @param visible whether the primitive is still visible 52 * @param user the user (! null required)53 * @param changesetId the changeset id ( >0 required)54 * @param timestamp the timestamp (! null required)52 * @param user the user (!= null required) 53 * @param changesetId the changeset id (> 0 required) 54 * @param timestamp the timestamp (!= null required) 55 55 * 56 56 * @throws IllegalArgumentException if preconditions are violated … … 64 64 * This is needed to build virtual HistoryOsmPrimitives for modified primitives, which do not have a timestamp and a changeset id. 65 65 * 66 * @param id the id ( >0 required)67 * @param version the version ( >0 required)66 * @param id the id (> 0 required) 67 * @param version the version (> 0 required) 68 68 * @param visible whether the primitive is still visible 69 * @param user the user (! null required)70 * @param changesetId the changeset id ( >0 required if {@code checkHistoricParams} is true)71 * @param timestamp the timestamp (! null required if {@code checkHistoricParams} is true)69 * @param user the user (!= null required) 70 * @param changesetId the changeset id (> 0 required if {@code checkHistoricParams} is true) 71 * @param timestamp the timestamp (!= null required if {@code checkHistoricParams} is true) 72 72 * @param checkHistoricParams if true, checks values of {@code changesetId} and {@code timestamp} 73 73 * -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java
r6317 r6830 26 26 * constructor 27 27 * 28 * @param id the id ( >0 required)29 * @param version the version ( >0 required)28 * @param id the id (> 0 required) 29 * @param version the version (> 0 required) 30 30 * @param visible whether the primitive is still visible 31 * @param user the user (! null required)32 * @param changesetId the changeset id ( >0 required)33 * @param timestamp the timestamp (! null required)31 * @param user the user (!= null required) 32 * @param changesetId the changeset id (> 0 required) 33 * @param timestamp the timestamp (!= null required) 34 34 * 35 35 * @throws IllegalArgumentException if preconditions are violated … … 42 42 * constructor 43 43 * 44 * @param id the id ( >0 required)45 * @param version the version ( >0 required)44 * @param id the id (> 0 required) 45 * @param version the version (> 0 required) 46 46 * @param visible whether the primitive is still visible 47 * @param user the user (! null required)48 * @param changesetId the changeset id ( >0 required if {@code checkHistoricParams} is true)49 * @param timestamp the timestamp (! null required if {@code checkHistoricParams} is true)47 * @param user the user (!= null required) 48 * @param changesetId the changeset id (> 0 required if {@code checkHistoricParams} is true) 49 * @param timestamp the timestamp (!= null required if {@code checkHistoricParams} is true) 50 50 * @param checkHistoricParams If true, checks values of {@code changesetId} and {@code timestamp} 51 51 * … … 60 60 * constructor 61 61 * 62 * @param id the id ( >0 required)63 * @param version the version ( >0 required)62 * @param id the id (> 0 required) 63 * @param version the version (> 0 required) 64 64 * @param visible whether the primitive is still visible 65 * @param user the user (! null required)66 * @param changesetId the changeset id ( >0 required)67 * @param timestamp the timestamp (! null required)65 * @param user the user (!= null required) 66 * @param changesetId the changeset id (> 0 required) 67 * @param timestamp the timestamp (!= null required) 68 68 * @param members list of members for this relation 69 69 * -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java
r6317 r6830 26 26 * Constructs a new {@code HistoryWay}. 27 27 * 28 * @param id the id ( >0 required)29 * @param version the version ( >0 required)28 * @param id the id (> 0 required) 29 * @param version the version (> 0 required) 30 30 * @param visible whether the node is still visible 31 * @param user the user (! null required)32 * @param changesetId the changeset id ( >0 required if {@code checkHistoricParams} is true)33 * @param timestamp the timestamp (! null required if {@code checkHistoricParams} is true)31 * @param user the user (!= null required) 32 * @param changesetId the changeset id (> 0 required if {@code checkHistoricParams} is true) 33 * @param timestamp the timestamp (!= null required if {@code checkHistoricParams} is true) 34 34 * @throws IllegalArgumentException if preconditions are violated 35 35 */ … … 42 42 * This is needed to build virtual HistoryWays for modified ways, which do not have a timestamp and a changeset id. 43 43 * 44 * @param id the id ( >0 required)45 * @param version the version ( >0 required)44 * @param id the id (> 0 required) 45 * @param version the version (> 0 required) 46 46 * @param visible whether the node is still visible 47 * @param user the user (! null required)48 * @param changesetId the changeset id ( >0 required if {@code checkHistoricParams} is true)49 * @param timestamp the timestamp (! null required if {@code checkHistoricParams} is true)47 * @param user the user (!= null required) 48 * @param changesetId the changeset id (> 0 required if {@code checkHistoricParams} is true) 49 * @param timestamp the timestamp (!= null required if {@code checkHistoricParams} is true) 50 50 * @param checkHistoricParams if true, checks values of {@code changesetId} and {@code timestamp} 51 51 * @throws IllegalArgumentException if preconditions are violated … … 59 59 * Constructs a new {@code HistoryWay} with a given list of node ids. 60 60 * 61 * @param id the id ( >0 required)62 * @param version the version ( >0 required)61 * @param id the id (> 0 required) 62 * @param version the version (> 0 required) 63 63 * @param visible whether the node is still visible 64 * @param user the user (! null required)65 * @param changesetId the changeset id ( >0 required if {@code checkHistoricParams} is true)66 * @param timestamp the timestamp (! null required if {@code checkHistoricParams} is true)67 * @param nodeIdList the node ids (! null required)64 * @param user the user (!= null required) 65 * @param changesetId the changeset id (> 0 required if {@code checkHistoricParams} is true) 66 * @param timestamp the timestamp (!= null required if {@code checkHistoricParams} is true) 67 * @param nodeIdList the node ids (!= null required) 68 68 * @throws IllegalArgumentException if preconditions are violated 69 69 */ … … 95 95 * @param idx the index 96 96 * @return the idx-th node id 97 * @exception IndexOutOfBoundsException thrown, if idx <0 || idx >= {#see {@link #getNumNodes()}97 * @exception IndexOutOfBoundsException thrown, if idx < 0 || idx >= {#see {@link #getNumNodes()} 98 98 */ 99 99 public long getNodeId(int idx) throws IndexOutOfBoundsException { -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r6380 r6830 281 281 * With this bug, <code>gv.setGlyphTransform(i, trfm)</code> has a different 282 282 * effect than on most other systems, namely the translation components 283 * ("m02" & "m12", {@link AffineTransform}) appear to be twice as large, as284 * they actually are. The rotation is unaffected (scale & shear not tested283 * ("m02" & "m12", {@link AffineTransform}) appear to be twice as large, as 284 * they actually are. The rotation is unaffected (scale & shear not tested 285 285 * so far). 286 286 * … … 445 445 /** 446 446 * Displays text at specified position including its halo, if applicable. 447 * 447 * 448 448 * @param gv Text's glyphs to display. If {@code null}, use text from {@code s} instead. 449 449 * @param s text to display if {@code gv} is {@code null} … … 484 484 } 485 485 } 486 486 487 487 protected void drawArea(OsmPrimitive osm, Path2D.Double path, Color color, MapImage fillImage, TextElement text) { 488 488 -
trunk/src/org/openstreetmap/josm/data/projection/Ellipsoid.java
r6463 r6830 184 184 185 185 /** 186 * Returns the <i>radius of curvature in the meridian< i>186 * Returns the <i>radius of curvature in the meridian</i> 187 187 * for this reference ellipsoid at the specified latitude. 188 188 * -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r6822 r6830 200 200 * @param gs A GridShift object containing the coordinate to shift 201 201 * @return True if the coordinate is within a Sub Grid, false if not 202 * @throws IOException203 202 */ 204 203 public boolean gridShiftForward(NTV2GridShift gs) { … … 223 222 * @param gs A GridShift object containing the coordinate to shift 224 223 * @return True if the coordinate is within a Sub Grid, false if not 225 * @throws IOException226 224 */ 227 225 public boolean gridShiftReverse(NTV2GridShift gs) { -
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r6781 r6830 63 63 * A OSM data validator. 64 64 * 65 * @author Francisco R. Santos <frsantos@gmail.com>65 * @author Francisco R. Santos <frsantos@gmail.com> 66 66 */ 67 67 public class OsmValidator implements LayerChangeListener { … … 119 119 ConditionalKeys.class, // 3200 .. 3299 120 120 }; 121 121 122 122 private static Map<String, Test> allTestsMap; 123 123 static { … … 226 226 return new TreeMap<String, Test>(allTestsMap); 227 227 } 228 228 229 229 /** 230 230 * Returns the instance of the given test class. … … 281 281 /** 282 282 * Initialize grid details based on current projection system. Values based on 283 * the original value fixed for EPSG:4326 (10000) using heuristics (that is, test& error283 * the original value fixed for EPSG:4326 (10000) using heuristics (that is, test&error 284 284 * until most bugs were discovered while keeping the processing time reasonable) 285 285 */ -
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r6639 r6830 101 101 /** The map of potential duplicates. 102 102 * 103 * If there is exactly one node for a given pos, the map includes a pair <pos, Node>.103 * If there is exactly one node for a given pos, the map includes a pair <pos, Node>. 104 104 * If there are multiple nodes for a given pos, the map includes a pair 105 * <pos, NodesByEqualTagsMap>105 * <pos, NodesByEqualTagsMap> 106 106 */ 107 107 private Storage<Object> potentialDuplicates; -
trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
r6659 r6830 29 29 30 30 /** 31 * Checks for nodes in power lines/minor_lines that do not have a power=tower/pole tag.<br />31 * Checks for nodes in power lines/minor_lines that do not have a power=tower/pole tag.<br> 32 32 * See #7812 for discussions about this test. 33 33 */ -
trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
r6791 r6830 33 33 /** 34 34 * Tests if there are segments that crosses in the same layer. 35 * <br />35 * <br> 36 36 * This class is abstract since highway/railway/waterway/… ways must be handled separately. 37 37 * An actual implementation must override {@link #isPrimitiveUsable(OsmPrimitive)} … … 53 53 super(tr("Unconnected highways")); 54 54 } 55 55 56 56 @Override 57 57 public boolean isPrimitiveUsable(OsmPrimitive p) { … … 71 71 super(tr("Unconnected railways")); 72 72 } 73 73 74 74 @Override 75 75 public boolean isPrimitiveUsable(OsmPrimitive p) { … … 89 89 super(tr("Unconnected waterways")); 90 90 } 91 91 92 92 @Override 93 93 public boolean isPrimitiveUsable(OsmPrimitive p) { … … 107 107 super(tr("Unconnected natural lands and landuses")); 108 108 } 109 109 110 110 @Override 111 111 public boolean isPrimitiveUsable(OsmPrimitive p) { … … 125 125 super(tr("Unconnected power ways")); 126 126 } 127 127 128 128 @Override 129 129 public boolean isPrimitiveUsable(OsmPrimitive p) {
Note:
See TracChangeset
for help on using the changeset viewer.