Changeset 8470 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2015-06-06T04:32:00+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r8461 r8470 955 955 * @param tmpPref - preferences to fill from JS 956 956 * @param varInJS - JS variable name, where preferences are stored 957 * @throws ScriptException 957 * @throws ScriptException if the evaluation fails 958 958 */ 959 959 public static void readPrefsFromJS(ScriptEngine engine, Preferences tmpPref, String varInJS) throws ScriptException { … … 1040 1040 * @param whereToPutInJS - variable name to store preferences in JS 1041 1041 * @param includeDefaults - include known default values to JS objects 1042 * @throws ScriptException 1042 * @throws ScriptException if the evaluation fails 1043 1043 */ 1044 1044 public static void loadPrefsToJS(ScriptEngine engine, Preferences tmpPref, String whereToPutInJS, boolean includeDefaults) throws ScriptException { -
trunk/src/org/openstreetmap/josm/data/cache/BufferedImageCacheEntry.java
r8344 r8470 34 34 * 35 35 * @return BufferedImage of cache entry content 36 * @throws IOException 36 * @throws IOException if an error occurs during reading. 37 37 */ 38 38 public BufferedImage getImage() throws IOException { -
trunk/src/org/openstreetmap/josm/data/cache/ICachedLoaderJob.java
r8440 r8470 37 37 38 38 /** 39 * Submit job for background fetch, and listener will be 40 * fed with value object 39 * Submit job for background fetch, and listener will be fed with value object 41 40 * 42 * @param listener 41 * @param listener cache loader listener 43 42 * @param force true if the load should skip all the caches (local & remote) 44 43 */ -
trunk/src/org/openstreetmap/josm/data/cache/ICachedLoaderListener.java
r8403 r8470 6 6 /** 7 7 * Result of download 8 *9 8 */ 10 9 enum LoadResult { … … 13 12 CANCELED 14 13 } 14 15 15 /** 16 16 * Will be called when K object processed. The result might be: … … 19 19 * LoadResult.REJECTED when job was rejected because of full queue 20 20 * 21 * @param data 22 * @param attributes 23 * @param result 21 * @param data cache entry contents 22 * @param attributes cache entry attributes 23 * @param result load result (success, failure, canceled) 24 24 */ 25 25 public void loadingFinished(CacheEntry data, CacheEntryAttributes attributes, LoadResult result); 26 27 26 } -
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r8384 r8470 504 504 * 505 505 * @param img Used only when overlapping is used, when not used, used raw from imageData 506 * @param imageData 507 * @param projection 508 * @param pixelPerDegree 509 * @param east 510 * @param north 511 * @throws IOException 506 * @param imageData input stream to raw image data 507 * @param projection current projection 508 * @param pixelPerDegree number of pixels per degree 509 * @param east easting 510 * @param north northing 511 * @throws IOException if any I/O error occurs 512 512 */ 513 public synchronized void saveToCache(BufferedImage img, InputStream imageData, Projection projection, double pixelPerDegree, double east, double north) throws IOException { 513 public synchronized void saveToCache(BufferedImage img, InputStream imageData, Projection projection, double pixelPerDegree, double east, double north) 514 throws IOException { 514 515 ProjectionEntries projectionEntries = getProjectionEntries(projection); 515 516 CacheEntry entry = findEntry(projectionEntries, pixelPerDegree, east, north); … … 523 524 mimeType = URLConnection.guessContentTypeFromStream(imageData); 524 525 } 525 entry = new CacheEntry(pixelPerDegree, east, north, tileSize,generateFileName(projectionEntries, pixelPerDegree, projection, east, north, mimeType)); 526 entry = new CacheEntry(pixelPerDegree, east, north, 527 tileSize,generateFileName(projectionEntries, pixelPerDegree, projection, east, north, mimeType)); 526 528 entry.lastUsed = System.currentTimeMillis(); 527 529 entry.lastModified = entry.lastUsed; -
trunk/src/org/openstreetmap/josm/data/osm/BBox.java
r8393 r8470 33 33 * Result is minimal BBox containing both points. 34 34 * 35 * @param a 36 * @param b 35 * @param a first point 36 * @param b second point 37 37 */ 38 38 public BBox(LatLon a, LatLon b) { -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r8338 r8470 954 954 /** 955 955 * Show message and stack trace in log in case primitive is not found 956 * @param primitiveId 956 * @param primitiveId primitive id to look for 957 957 * @return Primitive by id. 958 958 */ -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r8444 r8470 45 45 private static final String SPECIAL_VALUE_LOCAL_NAME = "localname"; 46 46 47 48 47 /** 49 48 * An object can be disabled by the filter mechanism. … … 115 114 * If <code>list</code> is null, replies an empty list. 116 115 * 117 * @param <T> 116 * @param <T> type of data (must be one of the {@link OsmPrimitive} types 118 117 * @param list the original list 119 118 * @param type the type to filter for 120 119 * @return the sub-list of OSM primitives of type <code>type</code> 121 120 */ 122 public static <T extends OsmPrimitive> 121 public static <T extends OsmPrimitive> List<T> getFilteredList(Collection<OsmPrimitive> list, Class<T> type) { 123 122 if (list == null) return Collections.emptyList(); 124 123 List<T> ret = new LinkedList<>(); … … 249 248 * 250 249 * @param id the id 251 * @param allowNegativeId 250 * @param allowNegativeId {@code true} to allow negative id 252 251 * @throws IllegalArgumentException if id < 0 and allowNegativeId is false 253 252 */ … … 278 277 * If id is not > 0 version is ignored and set to 0. 279 278 * 280 * @param id 281 * @param version 282 * @param allowNegativeId 279 * @param id the id 280 * @param version the version (positive integer) 281 * @param allowNegativeId {@code true} to allow negative id 283 282 * @throws IllegalArgumentException if id < 0 and allowNegativeId is false 284 283 */ … … 288 287 setIncomplete(id > 0 && version == 0); 289 288 } 290 291 289 292 290 /*---------- … … 313 311 /** 314 312 * This method should never ever by called from somewhere else than Dataset.addPrimitive or removePrimitive methods 315 * @param dataSet 313 * @param dataSet the parent dataset 316 314 */ 317 315 void setDataset(DataSet dataSet) { … … 1175 1173 1176 1174 /** 1177 * Replies true if this primitive and other are equal with respect to their 1178 * semantic attributes. 1175 * Replies true if this primitive and other are equal with respect to their semantic attributes. 1179 1176 * <ol> 1180 1177 * <li>equal id</li> … … 1182 1179 * <li>both have the same tags</li> 1183 1180 * </ol> 1184 * @param other 1185 * @return true if this primitive and other are equal with respect to their 1186 * semantic attributes. 1181 * @param other other primitive to compare 1182 * @return true if this primitive and other are equal with respect to their semantic attributes. 1187 1183 */ 1188 1184 public boolean hasEqualSemanticAttributes(OsmPrimitive other) { … … 1197 1193 1198 1194 /** 1199 * Replies true if this primitive and other are equal with respect to their 1200 * technical attributes.The attributes:1195 * Replies true if this primitive and other are equal with respect to their technical attributes. 1196 * The attributes: 1201 1197 * <ol> 1202 1198 * <li>deleted</li> … … 1209 1205 * have to be equal 1210 1206 * @param other the other primitive 1211 * @return true if this primitive and other are equal with respect to their 1212 * technical attributes 1207 * @return true if this primitive and other are equal with respect to their technical attributes 1213 1208 */ 1214 1209 public boolean hasEqualTechnicalAttributes(OsmPrimitive other) { 1215 1210 if (other == null) return false; 1216 1211 1217 return 1218 isDeleted() == other.isDeleted() 1212 return isDeleted() == other.isDeleted() 1219 1213 && isModified() == other.isModified() 1220 1214 && timestamp == other.timestamp -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r8444 r8470 109 109 /** 110 110 * Replace member at position specified by index. 111 * @param index 112 * @param member 111 * @param index index (positive integer) 112 * @param member relation member to set 113 113 * @return Member that was at the position 114 114 */ … … 133 133 /** 134 134 * Removes member at specified position. 135 * @param index 135 * @param index index (positive integer) 136 136 * @return Member that was at the position 137 137 */ … … 218 218 /** 219 219 * Creates new relation 220 * @param id 221 * @param version 220 * @param id the id 221 * @param version version number (positive integer) 222 222 */ 223 223 public Relation(long id, int version) { -
trunk/src/org/openstreetmap/josm/data/osm/Storage.java
r8384 r8470 130 130 /** 131 131 * constructor 132 * @param ha 133 * @param capacity 132 * @param ha hash 133 * @param capacity capacity 134 134 * @param safeIterator If set to false, you must not modify the Storage 135 135 * while iterating over it. If set to true, you can safely -
trunk/src/org/openstreetmap/josm/data/osm/User.java
r8444 r8470 148 148 * Adds a user name to the list if it is not there, yet. 149 149 * 150 * @param name 150 * @param name User name 151 151 */ 152 152 public void addName(String name) { … … 157 157 * Returns true if the name is in the names list 158 158 * 159 * @param name 159 * @param name User name 160 160 * @return <code>true</code> if the name is in the names list 161 161 */ -
trunk/src/org/openstreetmap/josm/data/osm/visitor/BoundingXYVisitor.java
r8395 r8470 107 107 * equal <code>null</code>) this method does not do anything. 108 108 * 109 * @param enlargeDegree 109 * @param enlargeDegree number of degrees to enlarge on each side 110 110 */ 111 111 public void enlargeBoundingBox(double enlargeDegree) { … … 141 141 * equal <code>null</code>) this method does not do anything. 142 142 * 143 * @param maxEnlargePercent 143 * @param maxEnlargePercent maximum enlargement in percentage (100.0 for 100%) 144 144 */ 145 145 public void enlargeBoundingBoxLogarithmically(double maxEnlargePercent) { -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r8444 r8470 857 857 * highlights a given GeneralPath using the settings from BasicStroke to match the line's 858 858 * style. Width of the highlight is hard coded. 859 * @param path 860 * @param line 859 * @param path path to draw 860 * @param line line style 861 861 */ 862 862 private void drawPathHighlight(GeneralPath path, BasicStroke line) { -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r8415 r8470 99 99 * @param in Grid Shift File InputStream 100 100 * @param loadAccuracy is Accuracy data to be loaded as well as shift data? 101 * @throws IOException 101 * @throws IOException if any I/O error occurs 102 102 */ 103 103 public void loadGridShiftFile(InputStream in, boolean loadAccuracy) throws IOException { -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java
r8406 r8470 69 69 * @param bigEndian is the file bigEndian? 70 70 * @param loadAccuracy is the node Accuracy data to be loaded? 71 * @throws IOException 71 * @throws IOException if any I/O error occurs 72 72 */ 73 73 public NTV2SubGrid(InputStream in, boolean bigEndian, boolean loadAccuracy) throws IOException { … … 283 283 /** 284 284 * Set an array of Sub Grids of this sub grid 285 * @param subGrid 285 * @param subGrid subgrids 286 286 */ 287 287 public void setSubGridArray(NTV2SubGrid[] subGrid) { -
trunk/src/org/openstreetmap/josm/data/validation/Test.java
r8378 r8470 251 251 * Fixes the error with the appropriate command 252 252 * 253 * @param testError 253 * @param testError error to fix 254 254 * @return The command to fix the error 255 255 */ -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r8461 r8470 9 9 import java.awt.event.ActionListener; 10 10 import java.io.BufferedReader; 11 import java.io.FileNotFoundException;12 11 import java.io.IOException; 13 12 import java.io.InputStream; … … 154 153 * by the nearest + word before this. 155 154 * 156 * @throws FileNotFoundException 157 * @throws IOException 155 * @throws IOException if any I/O error occurs 158 156 */ 159 157 private static void initializeData() throws IOException {
Note:
See TracChangeset
for help on using the changeset viewer.