Changeset 8931 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-10-23T01:17:45+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r8926 r8931 259 259 260 260 /** 261 * Oriented angle (N1N2, N1N3) in range [0; 2*Math.PI[ 261 * Returns oriented angle (N1N2, N1N3) in range [0; 2*Math.PI[ 262 * @return oriented angle (N1N2, N1N3) in range [0; 2*Math.PI[ 262 263 */ 263 264 private static double getAngle(Node N1, Node N2, Node N3) { … … 588 589 // Find boundary ways 589 590 List<Way> discardedWays = new ArrayList<>(); 590 List<AssembledPolygon> boun adries = findBoundaryPolygons(preparedWays, discardedWays);591 List<AssembledPolygon> boundaries = findBoundaryPolygons(preparedWays, discardedWays); 591 592 592 593 //find polygons 593 List<AssembledMultipolygon> preparedPolygons = findPolygons(bounadries); 594 594 List<AssembledMultipolygon> preparedPolygons = findPolygons(boundaries); 595 595 596 596 //assemble final polygons -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r8926 r8931 199 199 /** 200 200 * Collect groups of ways with common nodes in order to orthogonalize each group separately. 201 * @return groups of ways with common nodes 201 202 */ 202 203 private static List<List<WayData>> buildGroups(List<WayData> wayDataList) { … … 245 246 * - The same for vertical segments. 246 247 * 5. Rotate back. 248 * @return list of commands to perform 247 249 * @throws InvalidUserInputException if selected ways have an angle different from 90 or 180 degrees 248 250 **/ … … 475 477 /** 476 478 * Make sure angle (up to 2*Pi) is in interval [ 0, 2*Pi ). 479 * @return correct angle 477 480 */ 478 481 private static double standard_angle_0_to_2PI(double a) { … … 488 491 /** 489 492 * Make sure angle (up to 2*Pi) is in interval ( -Pi, Pi ]. 493 * @return correct angle 490 494 */ 491 495 private static double standard_angle_mPI_to_PI(double a) { … … 509 513 /** 510 514 * Rotate counter-clock-wise. 515 * @return new east/north 511 516 */ 512 517 public static EastNorth rotateCC(EastNorth pivot, EastNorth en, double angle) { … … 535 540 /** 536 541 * Recognize angle to be approximately 0, 90, 180 or 270 degrees. 537 * returns an integral value, corresponding to a counter clockwise turn: 542 * returns an integral value, corresponding to a counter clockwise turn. 543 * @return an integral value, corresponding to a counter clockwise turn 538 544 * @throws RejectedAngleException in case of invalid angle 539 545 */ -
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r8855 r8931 64 64 65 65 /** 66 * Replies trueif the source for tag pasting is heterogeneous, i.e. if it doesn't consist of66 * Determines if the source for tag pasting is heterogeneous, i.e. if it doesn't consist of 67 67 * {@link OsmPrimitive}s of exactly one type 68 * @return true if the source for tag pasting is heterogeneous 68 69 */ 69 70 protected boolean isHeteogeneousSource() { -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r8902 r8931 67 67 private final Command command; 68 68 private final List<? extends PrimitiveId> newSelection; 69 private Way originalWay;70 private List<Way> newWays;69 private final Way originalWay; 70 private final List<Way> newWays; 71 71 72 72 /** -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r8870 r8931 225 225 * The way will be put into the object variable "selectedWay", the 226 226 * node into "selectedNode". 227 * @return true if either one node is selected or one node and one way are selected and the node is part of the way 227 228 */ 228 229 private boolean checkSelection(Collection<? extends OsmPrimitive> selection) { … … 260 261 * The way will be put into the object variable "selectedWay", the 261 262 * nodes into "selectedNodes". 263 * @return true if one way and any number of nodes that are part of that way are selected 262 264 */ 263 265 private boolean checkSelection2(Collection<? extends OsmPrimitive> selection) { … … 302 304 * <li>the changed way will be returned and must be put into cmds by the caller!</li> 303 305 * </ul> 306 * @return new way 304 307 */ 305 308 private static Way modifyWay(Node originalNode, Way w, List<Command> cmds, List<Node> newNodes) { -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r8510 r8931 163 163 164 164 /** 165 * returns true if the user wants to cancel, false if they 166 * want to continue 165 * Warn user about discouraged upload, propose to cancel operation. 166 * @param layer incriminated layer 167 * @return true if the user wants to cancel, false if they want to continue 167 168 */ 168 169 public static boolean warnUploadDiscouraged(AbstractModifiableLayer layer) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r8870 r8931 155 155 156 156 /** 157 * Checks if a map redraw is required and does so if needed. Also updates the status bar 157 * Checks if a map redraw is required and does so if needed. Also updates the status bar. 158 * @return true if a repaint is needed 158 159 */ 159 160 private boolean redrawIfRequired() { … … 1103 1104 /** 1104 1105 * Removes target highlighting from primitives. Issues repaint if required. 1105 * Returnstrue if a repaint has been issued.1106 * @return true if a repaint has been issued. 1106 1107 */ 1107 1108 private boolean removeHighlighting() { … … 1235 1236 * to work around this issue. 1236 1237 * Otherwise the normal selection of the current data layer is returned. 1238 * @return selected primitives, while draw action is in progress 1237 1239 */ 1238 1240 public Collection<OsmPrimitive> getInProgressSelection() { -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r8870 r8931 1108 1108 1109 1109 /** 1110 * Returns true if from1-to1 and from2-to2 vertors directions are opposite 1110 * Determines if from1-to1 and from2-to2 vertors directions are opposite 1111 * @return true if from1-to1 and from2-to2 vertors directions are opposite 1111 1112 */ 1112 1113 private static boolean isOppositeDirection(EastNorth from1, EastNorth to1, EastNorth from2, EastNorth to2) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r8870 r8931 686 686 } 687 687 688 /** returns true whenever elements have been grabbed and moved (i.e. the initial 689 * thresholds have been exceeded) and is still in progress (i.e. mouse button 690 * still pressed) 688 /** 689 * Determines whenever elements have been grabbed and moved (i.e. the initial 690 * thresholds have been exceeded) and is still in progress (i.e. mouse button still pressed) 691 * @return true if a drag is in progress 691 692 */ 692 693 private boolean dragInProgress() { … … 797 798 /** 798 799 * Obtain command in undoRedo stack to "continue" when dragging 800 * @return last command 799 801 */ 800 802 private static Command getLastCommand() { … … 901 903 * Tries to find a node to merge to when in move-merge mode for the current mouse 902 904 * position. Either returns the node or null, if no suitable one is nearby. 905 * @return node to merge to, or null 903 906 */ 904 907 private Node findNodeToMergeTo(Point p) { -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r8899 r8931 241 241 /** 242 242 * Tests whether one of the primitives matches. 243 * @param primitives primitives 244 * @return {@code true} if one of the primitives matches, {@code false} otherwise 243 245 */ 244 246 protected boolean existsMatch(Collection<? extends OsmPrimitive> primitives) { … … 252 254 /** 253 255 * Tests whether all primitives match. 256 * @param primitives primitives 257 * @return {@code true} if all primitives match, {@code false} otherwise 254 258 */ 255 259 protected boolean forallMatch(Collection<? extends OsmPrimitive> primitives) { -
trunk/src/org/openstreetmap/josm/actions/upload/UploadHook.java
r8512 r8931 5 5 6 6 public interface UploadHook { 7 7 8 /** 8 9 * Checks the upload. 9 10 * @param apiDataSet the data to upload 11 * @return {@code true} if upload is possible 10 12 */ 11 13 boolean checkUpload(APIDataSet apiDataSet); -
trunk/src/org/openstreetmap/josm/command/Command.java
r8510 r8931 220 220 /** 221 221 * Replies the layer this command is (or was) applied to. 222 * 222 * @return the layer this command is (or was) applied to 223 223 */ 224 224 protected OsmDataLayer getLayer() { … … 241 241 * Return the primitives that take part in this command. 242 242 */ 243 @Override public Collection<? extends OsmPrimitive> getParticipatingPrimitives() { 243 @Override 244 public Collection<? extends OsmPrimitive> getParticipatingPrimitives() { 244 245 return cloneMap.keySet(); 245 246 } -
trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
r8510 r8931 142 142 * Sorts a collection of primitives such that for each object 143 143 * its referrers come later in the sorted collection. 144 * @return sorted list 144 145 */ 145 146 public static List<OsmPrimitive> topoSort(Collection<OsmPrimitive> sel) { -
trunk/src/org/openstreetmap/josm/command/RotateCommand.java
r8840 r8931 47 47 48 48 /** 49 * Get angle between the horizontal axis and the line formed by the pivot and give points. 49 * Get angle between the horizontal axis and the line formed by the pivot and given point. 50 * @return angle between the horizontal axis and the line formed by the pivot and given point 50 51 **/ 51 52 protected final double getAngle(EastNorth currentEN) { -
trunk/src/org/openstreetmap/josm/command/TransformNodesCommand.java
r8510 r8931 119 119 /** 120 120 * Get the nodes with the current transformation applied. 121 * @return nodes with the current transformation applied 121 122 */ 122 123 public Collection<Node> getTransformedNodes() { … … 127 128 * Get the center of the nodes under modification. 128 129 * It's just the barycenter. 130 * @return center east/north of the nodes under modification 129 131 * @see org.openstreetmap.josm.tools.Geometry#getCentroid(java.util.List) 130 132 */
Note:
See TracChangeset
for help on using the changeset viewer.