- Timestamp:
- 2015-09-24T23:56:05+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r8513 r8795 110 110 * 111 111 * Case 1: One unclosed way. 112 * -- >allow action, and align selected way nodes112 * --> allow action, and align selected way nodes 113 113 * If nodes contained by this way are selected, there are fix. 114 114 * If nodes outside from the way are selected there are ignored. 115 115 * 116 116 * Case 2: One or more ways are selected and can be joined into a polygon 117 * -- >allow action, and align selected ways nodes117 * --> allow action, and align selected ways nodes 118 118 * If 1 node outside of way is selected, it became center 119 119 * If 1 node outside and 1 node inside are selected there define center and radius … … 124 124 * 125 125 * Case 3: Only nodes are selected 126 * -- >Align these nodes, all are fix126 * --> Align these nodes, all are fix 127 127 */ 128 128 @Override -
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r8540 r8795 190 190 /** 191 191 * Returns a {@link Pair} of the old multipolygon {@link Relation} (or null) and the newly created/modified multipolygon {@link Relation}. 192 * @param selectedWays selected ways 193 * @param selectedMultipolygonRelation selected multipolygon relation 194 * @return pair of old and new multipolygon relation 192 195 */ 193 196 public static Pair<Relation, Relation> updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) { … … 207 210 /** 208 211 * Returns a {@link Pair} null and the newly created/modified multipolygon {@link Relation}. 212 * @param selectedWays selected ways 213 * @param showNotif if {@code true}, shows a notification if an error occurs 214 * @return pair of null and new multipolygon relation 209 215 */ 210 216 public static Pair<Relation, Relation> createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif) { … … 220 226 /** 221 227 * Returns a {@link Pair} of a multipolygon creating/modifying {@link Command} as well as the multipolygon {@link Relation}. 228 * @param selectedWays selected ways 229 * @param selectedMultipolygonRelation selected multipolygon relation 230 * @return pair of command and multipolygon relation 222 231 */ 223 232 public static Pair<SequenceCommand, Relation> createMultipolygonCommand(Collection<Way> selectedWays, … … 274 283 * This method analyzes ways and creates multipolygon. 275 284 * @param selectedWays list of selected ways 285 * @param showNotif if {@code true}, shows a notification if an error occurs 276 286 * @return <code>null</code>, if there was a problem with the ways. 277 287 */ … … 301 311 * Builds a relation from polygon ways. 302 312 * @param pol data storage class containing polygon information 313 * @param clone relation to clone, can be null 303 314 * @return multipolygon relation 304 315 */ -
trunk/src/org/openstreetmap/josm/actions/DistributeAction.java
r8510 r8795 210 210 * that are furthest apart, and then to distribute all other selected 211 211 * nodes along the straight line between these nodes. 212 * @param nodes nodes to distribute 212 213 * @return Commands to execute to perform action 213 214 */ 214 private Collection<Command> distributeNodes(Collection<Node> nodes) {215 private static Collection<Command> distributeNodes(Collection<Node> nodes) { 215 216 // Find from the selected nodes two that are the furthest apart. 216 217 // Let's call them A and B. -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r8513 r8795 528 528 * @param areas list of areas to join 529 529 * @return new area formed. 530 * @throws UserCancelException if user cancels the operation 530 531 */ 531 532 private JoinAreasResult joinAreas(List<Multipolygon> areas) throws UserCancelException { … … 1194 1195 * @param polygon The list of outer ways that belong to that multigon. 1195 1196 * @return The newly created outer way 1197 * @throws UserCancelException if user cancels the operation 1196 1198 */ 1197 1199 private Multipolygon joinPolygon(AssembledMultipolygon polygon) throws UserCancelException { … … 1209 1211 * @param ways The list of outer ways that belong to that multigon. 1210 1212 * @return The newly created outer way 1213 * @throws UserCancelException if user cancels the operation 1211 1214 */ 1212 1215 private Way joinWays(List<WayInPolygon> ways) throws UserCancelException { … … 1237 1240 * @param ways The list of ways to join and reverse 1238 1241 * @return The newly created way 1242 * @throws UserCancelException if user cancels the operation 1239 1243 */ 1240 1244 private Way joinOrientedWays(List<WayInPolygon> ways) throws UserCancelException { -
trunk/src/org/openstreetmap/josm/actions/ToggleAction.java
r8540 r8795 120 120 * the component already set the selected state. 121 121 * This method needs to be called especially if the action is associated with a keyboard shortcut to ensure correct selected state. 122 * @param e ActionEvent that trigerred the action 122 123 * @see <a href="https://weblogs.java.net/blog/zixle/archive/2005/11/changes_to_acti.html">Changes to Actions in 1.6</a> 123 124 * @see <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/Action.html">Interface Action</a> -
trunk/src/org/openstreetmap/josm/data/cache/ICachedLoaderJob.java
r8673 r8795 43 43 * 44 44 * @param listener cache loader listener 45 * @param force true if the load should skip all the caches (local & remote)45 * @param force true if the load should skip all the caches (local & remote) 46 46 * @throws IOException on failure from getUrl() call 47 47 */ -
trunk/src/org/openstreetmap/josm/data/gpx/GpxConstants.java
r8512 r8795 53 53 String PT_TIME = "time"; 54 54 55 /** Magnetic variation (in degrees) at the point. 0.0 <= value <360.0 */55 /** Magnetic variation (in degrees) at the point. 0.0 <= value < 360.0 */ 56 56 String PT_MAGVAR = "magvar"; 57 57 … … 83 83 String PT_AGEOFDGPSDATA = "ageofdgpsdata"; 84 84 85 /** Represents a differential GPS station. 0 <= value <= 1023 */85 /** Represents a differential GPS station. 0 <= value <= 1023 */ 86 86 String PT_DGPSID = "dgpsid"; 87 87 -
trunk/src/org/openstreetmap/josm/data/projection/Ellipsoid.java
r8510 r8795 25 25 26 26 /** 27 * Australian National Spheroid (Australian Natl & S. Amer. 1969)27 * Australian National Spheroid (Australian Natl & S. Amer. 1969) 28 28 * same as GRS67 Modified 29 29 */ -
trunk/src/org/openstreetmap/josm/data/validation/routines/RegexValidator.java
r8510 r8795 34 34 * <p> 35 35 * <ul> 36 * <li>Validate <code>true</code> or <code>false</code>: </li>36 * <li>Validate <code>true</code> or <code>false</code>: 37 37 * <ul> 38 38 * <li><code>boolean valid = validator.isValid(value);</code></li> 39 * </ul> 40 * <li>Validate returning an aggregated String of the matched groups: </li>39 * </ul></li> 40 * <li>Validate returning an aggregated String of the matched groups: 41 41 * <ul> 42 42 * <li><code>String result = validator.validate(value);</code></li> 43 * </ul> 44 * <li>Validate returning the matched groups: </li>43 * </ul></li> 44 * <li>Validate returning the matched groups: 45 45 * <ul> 46 46 * <li><code>String[] result = validator.match(value);</code></li> 47 * </ul> 47 * </ul></li> 48 48 * </ul> 49 49 * <p> -
trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java
r8510 r8795 28 28 /** 29 29 * <p><b>URL Validation</b> routines.</p> 30 * Behavior of validation is modified by passing in options: 30 * Behavior of validation is modified by passing in options:<ul> 31 31 * <li>ALLOW_2_SLASHES - [FALSE] Allows double '/' characters in the path 32 32 * component.</li> … … 35 35 * <li>ALLOW_ALL_SCHEMES - [FALSE] By default only http, https, and ftp are 36 36 * considered valid schemes. Enabling this option will let any scheme pass validation.</li> 37 * 37 * </ul> 38 38 * <p>Originally based in on php script by Debbie Dyer, validation.php v1.2b, Date: 03/07/02, 39 39 * http://javascript.internet.com. However, this validation now bears little resemblance -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r8736 r8795 177 177 * exception is thrown, a message box will be displayed and closeDialog 178 178 * is called. finish() is called in any case. 179 * @throws SAXException if a SAX error occurs 180 * @throws IOException if an I/O error occurs 181 * @throws OsmTransferException if a communication error with the OSM server occurs 179 182 */ 180 183 protected abstract void realRun() throws SAXException, IOException, OsmTransferException; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r8775 r8795 565 565 566 566 /** 567 * Function associated to the logical " >=" operator.567 * Function associated to the logical ">=" operator. 568 568 * @param a first value 569 569 * @param b second value 570 * @return {@code true} if {@code a >= b}570 * @return {@code true} if {@code a >= b} 571 571 */ 572 572 public static boolean greater_equal(float a, float b) { … … 575 575 576 576 /** 577 * Function associated to the logical " <=" operator.577 * Function associated to the logical "<=" operator. 578 578 * @param a first value 579 579 * @param b second value 580 * @return {@code true} if {@code a <= b}580 * @return {@code true} if {@code a <= b} 581 581 */ 582 582 public static boolean less_equal(float a, float b) { … … 585 585 586 586 /** 587 * Function associated to the logical " >" operator.587 * Function associated to the logical ">" operator. 588 588 * @param a first value 589 589 * @param b second value 590 * @return {@code true} if {@code a >b}590 * @return {@code true} if {@code a > b} 591 591 */ 592 592 public static boolean greater(float a, float b) { … … 595 595 596 596 /** 597 * Function associated to the logical " <" operator.597 * Function associated to the logical "<" operator. 598 598 * @param a first value 599 599 * @param b second value 600 * @return {@code true} if {@code a <b}600 * @return {@code true} if {@code a < b} 601 601 */ 602 602 public static boolean less(float a, float b) { -
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractFileChooser.java
r8440 r8795 179 179 * Pops up an "Open File" file chooser dialog. Note that the 180 180 * text that appears in the approve button is determined by 181 * the L& F.181 * the L&F. 182 182 * 183 183 * @param parent the parent component of the dialog, … … 199 199 * Pops up a "Save File" file chooser dialog. Note that the 200 200 * text that appears in the approve button is determined by 201 * the L& F.201 * the L&F. 202 202 * 203 203 * @param parent the parent component of the dialog, -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r8776 r8795 463 463 464 464 /** 465 * Alerts the user if a plugin required by another plugin is missing, and offer to download them & restart JOSM465 * Alerts the user if a plugin required by another plugin is missing, and offer to download them & restart JOSM 466 466 * 467 467 * @param parent The parent Component used to display error popup -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r8777 r8795 1316 1316 1317 1317 /** 1318 * Returns a pair containing the number of threads (n), and a thread pool (if n >1) to perform1318 * Returns a pair containing the number of threads (n), and a thread pool (if n > 1) to perform 1319 1319 * multi-thread computation in the context of the given preference key. 1320 1320 * @param pref The preference key 1321 1321 * @param nameFormat see {@link #newThreadFactory(String, int)} 1322 1322 * @param threadPriority see {@link #newThreadFactory(String, int)} 1323 * @return a pair containing the number of threads (n), and a thread pool (if n >1, null otherwise)1323 * @return a pair containing the number of threads (n), and a thread pool (if n > 1, null otherwise) 1324 1324 * @since 7423 1325 1325 */
Note:
See TracChangeset
for help on using the changeset viewer.