Changeset 5903 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-04-25T17:57:04+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r5889 r5903 390 390 /** 391 391 * Tests if the areas have some intersections to join. 392 * @param areas 393 * @return 392 * @param areas Areas to test 393 * @return @{code true} if areas are joinable 394 394 */ 395 395 private boolean testJoin(List<Multipolygon> areas) { … … 408 408 /** 409 409 * Will join two or more overlapping areas 410 * @param areas -list of areas to join410 * @param areas list of areas to join 411 411 * @return new area formed. 412 412 */ … … 525 525 /** 526 526 * Checks if tags of two given ways differ, and presents the user a dialog to solve conflicts 527 * @param Way First way to check 528 * @param Way Second Way to check 529 * @return boolean True if all conflicts are resolved, False if conflicts remain. 527 * @param polygons ways to check 528 * @return {@code true} if all conflicts are resolved, {@code false} if conflicts remain. 530 529 */ 531 530 private boolean resolveTagConflicts(List<Multipolygon> polygons) { … … 554 553 /** 555 554 * This method removes duplicate points (if any) from the input way. 556 * @param way the wayto process557 * @return trueif any changes where made555 * @param ways the ways to process 556 * @return {@code true} if any changes where made 558 557 */ 559 558 private boolean removeDuplicateNodes(List<Way> ways) { … … 617 616 /** 618 617 * Commits the command list with a description 619 * @param StringThe description of what the commands do618 * @param description The description of what the commands do 620 619 */ 621 620 private void commitCommands(String description) { … … 863 862 864 863 /** 865 * This method finds w itch ways are outer and witch are inner.866 * @param boundar yWays867 * @return 864 * This method finds which ways are outer and which are inner. 865 * @param boundaries list of joined boundaries to search in 866 * @return outer ways 868 867 */ 869 868 private List<AssembledMultipolygon> findPolygons(Collection<AssembledPolygon> boundaries) { … … 884 883 /** 885 884 * Collects outer way and corresponding inner ways from all boundaries. 885 * @param level depth level 886 886 * @param boundaryWays 887 887 * @return the outermostWay. … … 1073 1073 /** 1074 1074 * Tests if way is inside other way 1075 * @param outside 1076 * @param inside 1077 * @return 1075 * @param outside outer polygon description 1076 * @param inside inner polygon description 1077 * @return {@code true} if inner is inside outer 1078 1078 */ 1079 1079 public static boolean wayInsideWay(AssembledPolygon inside, AssembledPolygon outside) { … … 1094 1094 /** 1095 1095 * Joins the lists of ways. 1096 * @param Collection<Way>The list of outer ways that belong to that multigon.1097 * @return WayThe newly created outer way1096 * @param polygon The list of outer ways that belong to that multigon. 1097 * @return The newly created outer way 1098 1098 */ 1099 1099 private Multipolygon joinPolygon(AssembledMultipolygon polygon) throws UserCancelException { … … 1109 1109 /** 1110 1110 * Joins the outer ways and deletes all short ways that can't be part of a multipolygon anyway. 1111 * @param Collection<Way>The list of outer ways that belong to that multigon.1112 * @return WayThe newly created outer way1111 * @param ways The list of outer ways that belong to that multigon. 1112 * @return The newly created outer way 1113 1113 */ 1114 1114 private Way joinWays(List<WayInPolygon> ways) throws UserCancelException { … … 1137 1137 /** 1138 1138 * Joins a list of ways (using CombineWayAction and ReverseWayAction as specified in WayInPath) 1139 * @param ArrayList<Way>The list of ways to join and reverse1140 * @return WayThe newly created way1139 * @param ways The list of ways to join and reverse 1140 * @return The newly created way 1141 1141 */ 1142 1142 private Way joinOrientedWays(List<WayInPolygon> ways) throws UserCancelException{ … … 1264 1264 /** 1265 1265 * This method filters the list of relations that form the multipolygons. 1266 * @param relations 1267 * @param polygons 1268 * @return 1266 * @param relations all relations 1267 * @param polygons polygons for filtering 1268 * @return relations which don't form the polygons 1269 1269 */ 1270 1270 private List<Relation> filterOwnMultipolygonRelations(Collection<Relation> relations, List<Multipolygon> polygons) { … … 1287 1287 /** 1288 1288 * Will add own multipolygon relation to the "previously existing" relations. Fixup is done by fixRelations 1289 * @param Collection<Way>List of already closed inner ways1290 * @param WayThe outer way1291 * @ param ArrayList<RelationRole>The list of relation with roles to add own relation to1289 * @param inner List of already closed inner ways 1290 * @param outer The outer way 1291 * @return The list of relation with roles to add own relation to 1292 1292 */ 1293 1293 private RelationRole addOwnMultigonRelation(Collection<Way> inner, Way outer) { … … 1308 1308 /** 1309 1309 * Removes a given OsmPrimitive from all relations 1310 * @param OsmPrimitiveElement to remove from all relations1311 * @return ArrayList<RelationRole>List of relations with roles the primitives was part of1310 * @param osm Element to remove from all relations 1311 * @return List of relations with roles the primitives was part of 1312 1312 */ 1313 1313 private ArrayList<RelationRole> removeFromAllRelations(OsmPrimitive osm) { … … 1345 1345 * relations where the joined areas were in "outer" role a new relation is created instead with all 1346 1346 * members of both. This function depends on multigon relations to be valid already, it won't fix them. 1347 * @param ArrayList<RelationRole> List of relations with roles the (original) ways were part of 1348 * @param Way The newly created outer area/way 1349 * @param relationsToDelete - set of relations to delete. 1347 * @param rels List of relations with roles the (original) ways were part of 1348 * @param outer The newly created outer area/way 1349 * @param ownMultipol elements to directly add as outer 1350 * @param relationsToDelete set of relations to delete. 1350 1351 */ 1351 1352 private void fixRelations(ArrayList<RelationRole> rels, Way outer, RelationRole ownMultipol, Set<Relation> relationsToDelete) { … … 1399 1400 1400 1401 /** 1401 * @param Collection<Way> The List of Ways to remove all tags from 1402 * Remove all tags from the all the way 1403 * @param ways The List of Ways to remove all tags from 1402 1404 */ 1403 1405 private void stripTags(Collection<Way> ways) { … … 1410 1412 1411 1413 /** 1412 * @param Way The Way to remove all tags from 1414 * Remove all tags from the way 1415 * @param x The Way to remove all tags from 1413 1416 */ 1414 1417 private void stripTags(Way x) { … … 1425 1428 * Takes the last cmdsCount actions back and combines them into a single action 1426 1429 * (for when the user wants to undo the join action) 1427 * @param StringThe commit message to display1430 * @param message The commit message to display 1428 1431 */ 1429 1432 private void makeCommitsOneAction(String message) { -
trunk/src/org/openstreetmap/josm/command/WayNodesConflictResolverCommand.java
r5266 r5903 30 30 31 31 /** 32 * 33 * @param my my may 34 * @param their their way 35 * @param mergedNodeList the list of merged nodes 32 * @param conflict the conflict data set 33 * @param mergedNodeList the list of merged nodes 36 34 */ 37 35 @SuppressWarnings("unchecked") -
trunk/src/org/openstreetmap/josm/data/projection/Projection.java
r5548 r5903 15 15 public interface Projection { 16 16 /** 17 * The default scale factor in east/north units per pixel ({@link #NavigatableComponent#scale})). 17 * The default scale factor in east/north units per pixel 18 * ({@link org.openstreetmap.josm.gui.NavigatableComponent#scale})). 18 19 * FIXME: misnomer 19 20 * @return the scale factor -
trunk/src/org/openstreetmap/josm/gui/MultiSplitLayout.java
r5874 r5903 944 944 * @return the Node that comes after this one in the parent's list of children. 945 945 * @see #previousSibling 946 * @see # getParent946 * @see #parent_get 947 947 */ 948 948 public Node nextSibling() { … … 957 957 * @return the Node that comes before this one in the parent's list of children. 958 958 * @see #nextSibling 959 * @see # getParent959 * @see #parent_get 960 960 */ 961 961 public Node previousSibling() { -
trunk/src/org/openstreetmap/josm/gui/NameFormatterHook.java
r4209 r5903 30 30 * @return The corrected format if needed, null otherwise. 31 31 */ 32 public String checkFormat(IWay node, String defaultName);32 public String checkFormat(IWay way, String defaultName); 33 33 34 34 /** … … 38 38 * @return The corrected format if needed, null otherwise. 39 39 */ 40 public String checkFormat(IRelation node, String defaultName);40 public String checkFormat(IRelation relation, String defaultName); 41 41 } -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r5870 r5903 347 347 * Zoom to the given coordinate. 348 348 * @param newCenter The center x-value (easting) to zoom to. 349 * @param scale The scale to use.349 * @param newScale The scale to use. 350 350 */ 351 351 public void zoomTo(EastNorth newCenter, double newScale) { … … 396 396 * Zoom to the given coordinate without adding to the zoom undo buffer. 397 397 * @param newCenter The center x-value (easting) to zoom to. 398 * @param scale The scale to use.398 * @param newScale The scale to use. 399 399 */ 400 400 private void zoomNoUndoTo(EastNorth newCenter, double newScale) { … … 929 929 * @return The nearest way to point p, 930 930 * prefer a selected way if there are multiple nearest. 931 * @see #getNearestWaySegment(Point, Collection,Predicate)931 * @see #getNearestWaySegment(Point, Predicate) 932 932 * 933 933 * @param p the point for which to search the nearest segment. … … 985 985 * 986 986 * @return Primitives nearest to the given screen point. 987 * @see #getNearest s(Point, Collection, Predicate)987 * @see #getNearestNodesOrWays(Point, Collection, Predicate) 988 988 * 989 989 * @param p The point on screen. … … 1035 1035 * @return A primitive within snap-distance to point p, 1036 1036 * that is chosen by the algorithm described. 1037 * @see getNearestNode(Point, Predicate)1038 * @see getNearestNodesImpl(Point, Predicate)1039 * @see getNearestWay(Point, Predicate)1037 * @see #getNearestNode(Point, Predicate) 1038 * @see #getNearestNodesImpl(Point, Predicate) 1039 * @see #getNearestWay(Point, Predicate) 1040 1040 * 1041 1041 * @param p The point on screen. -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ComparePairType.java
r5266 r5903 13 13 14 14 /** 15 * compare my version of an {@link OsmPrimitive} with their version15 * compare my version of an {@link org.openstreetmap.josm.data.osm.OsmPrimitive} with their version 16 16 */ 17 17 MY_WITH_THEIR (tr("My with Their"), new ListRole[] {MY_ENTRIES, THEIR_ENTRIES}), 18 18 19 19 /** 20 * compare my version of an {@link OsmPrimitive} with the merged version20 * compare my version of an {@link org.openstreetmap.josm.data.osm.OsmPrimitive} with the merged version 21 21 */ 22 22 MY_WITH_MERGED (tr("My with Merged"), new ListRole[] {MY_ENTRIES, MERGED_ENTRIES}), 23 23 24 24 /** 25 * compare their version of an {@link OsmPrimitive} with the merged veresion25 * compare their version of an {@link org.openstreetmap.josm.data.osm.OsmPrimitive} with the merged veresion 26 26 */ 27 27 THEIR_WITH_MERGED(tr("Their with Merged"), new ListRole[] {THEIR_ENTRIES, MERGED_ENTRIES}); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ConflictResolver.java
r5297 r5903 163 163 /** 164 164 * handles property change events 165 * @param evt the event 166 * @see TagMergeModel 167 * @see ListMergeModel 168 * @see PropertiesMergeModel 165 169 */ 166 170 public void propertyChange(PropertyChangeEvent evt) { … … 223 227 * populates the conflict resolver with the conflicts between my and their 224 228 * 225 * @param my my primitive (i.e. the primitive in the local dataset) 226 * @param their their primitive (i.e. the primitive in the server dataset) 227 * 229 * @param conflict the conflict data set 228 230 */ 229 231 public void populate(Conflict<? extends OsmPrimitive> conflict) { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMergeModel.java
r5335 r5903 55 55 * A ListMergeModel can be ''frozen''. If it's frozen, it doesn't accept additional merge 56 56 * decisions. {@link PropertyChangeListener}s can register for property value changes of 57 * {@link # PROP_FROZEN}.57 * {@link #FROZEN_PROP}. 58 58 * 59 59 * ListMergeModel is an abstract class. Three methods have to be implemented by subclasses: 60 60 * <ul> 61 * <li>{@link ListMergeModel#cloneEntryForMergedList (Object)} - clones an entry of type T</li>62 * <li>{@link ListMergeModel#isEqualEntry (Object, Object)} - checks whether two entries are equals </li>61 * <li>{@link ListMergeModel#cloneEntryForMergedList} - clones an entry of type T</li> 62 * <li>{@link ListMergeModel#isEqualEntry} - checks whether two entries are equals </li> 63 63 * <li>{@link ListMergeModel#setValueAt(DefaultTableModel, Object, int, int)} - handles values edited in 64 64 * a JTable, dispatched from {@link TableModel#setValueAt(Object, int, int)} </li> … … 586 586 * From the point of view of the {@link JTable} it is a {@link TableModel}. 587 587 * 588 * @param <T>589 588 * @see ListMergeModel#getMyTableModel() 590 589 * @see ListMergeModel#getTheirTableModel() -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModel.java
r5298 r5903 52 52 * Builds the command to resolve conflicts in the node list of a way 53 53 * 54 * @param my my way. Must not be null. 55 * @param their their way. Must not be null 54 * @param conflict the conflict data set 56 55 * @return the command 57 56 * @exception IllegalStateException thrown, if the merge is not yet frozen -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r5496 r5903 279 279 280 280 /** 281 * 282 * @param primitive 283 * @return List of primitives whose filtering can be affected by change in primitive281 * Returns the list of primitives whose filtering can be affected by change in primitive 282 * @param primitives list of primitives to check 283 * @return List of primitives whose filtering can be affected by change in source primitives 284 284 */ 285 285 private Collection<OsmPrimitive> getAffectedPrimitives(Collection<? extends OsmPrimitive> primitives) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r5825 r5903 464 464 * Replies the history of JOSM selections 465 465 * 466 * @return 466 * @return history of JOSM selections 467 467 */ 468 468 public List<Collection<? extends OsmPrimitive>> getSelectionHistory() { … … 484 484 * of this model 485 485 * 486 * @return 486 * @return choosen elements in the view 487 487 */ 488 488 public Collection<OsmPrimitive> getSelected() { … … 500 500 * of this model 501 501 * 502 * @return 502 * @return complete content of the view 503 503 */ 504 504 public Collection<OsmPrimitive> getAllElements() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java
r5890 r5903 209 209 * in the changeset table. 210 210 * 211 * @return 211 * @return changset actions panel 212 212 */ 213 213 protected JPanel buildChangesetTableActionPanel() { … … 607 607 * respective changesets are already present in the local changeset cache. 608 608 * 609 * @param ids the collection of changesets. If null, the selection is cleared. 609 * @param changesets the collection of changesets. If {@code null}, the 610 * selection is cleared. 610 611 */ 611 612 public void setSelectedChangesets(Collection<Changeset> changesets) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentDownloadTask.java
r5266 r5903 87 87 * Creates a download task for a single changeset 88 88 * 89 * @param parent the parent component for the {@link PleaseWaitDialog}. Must not be null.90 * @param changesetId the changeset id. >0required.91 * @throws IllegalArgumentException thrown if changesetId <= 092 * @throws IllegalArgumentException thrown if parent is null89 * @param parent the parent component for the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}. Must not be {@code null}. 90 * @param changesetId the changeset id. {@code >0} required. 91 * @throws IllegalArgumentException thrown if {@code changesetId <= 0} 92 * @throws IllegalArgumentException thrown if parent is {@code null} 93 93 */ 94 94 public ChangesetContentDownloadTask(Component parent, int changesetId) throws IllegalArgumentException{ … … 103 103 * the collection are sillently discarded. 104 104 * 105 * @param parent the parent component for the {@link PleaseWaitDialog}. Must not be null.106 * @param changesetIds the changeset ids. Empty collection assumed, if null.107 * @throws IllegalArgumentException thrown if parent is null105 * @param parent the parent component for the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}. Must not be {@code null}. 106 * @param changesetIds the changeset ids. Empty collection assumed, if {@code null}. 107 * @throws IllegalArgumentException thrown if parent is {@code null} 108 108 */ 109 109 public ChangesetContentDownloadTask(Component parent, Collection<Integer> changesetIds) throws IllegalArgumentException { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetHeaderDownloadTask.java
r5266 r5903 53 53 * Ignores null values and changesets with {@link Changeset#isNew()} == true. 54 54 * 55 * @param parent the parent component relative to which the {@link PleaseWaitDialog} is displayed.55 * @param parent the parent component relative to which the {@link org.openstreetmap.josm.gui.PleaseWaitDialog} is displayed. 56 56 * Must not be null. 57 57 * @param changesets the collection of changesets. Assumes an empty collection if null. … … 101 101 102 102 /** 103 * Creates the download task for a collection of changeset ids. Uses a {@link PleaseWaitDialog}103 * Creates the download task for a collection of changeset ids. Uses a {@link org.openstreetmap.josm.gui.PleaseWaitDialog} 104 104 * whose parent is {@link Main#parent}. 105 105 * … … 115 115 116 116 /** 117 * Creates the download task for a collection of changeset ids. Uses a {@link PleaseWaitDialog}117 * Creates the download task for a collection of changeset ids. Uses a {@link org.openstreetmap.josm.gui.PleaseWaitDialog} 118 118 * whose parent is the parent window of <code>dialogParent</code>. 119 119 * 120 120 * Null ids or or ids <= 0 in the id collection are ignored. 121 121 * 122 * @param dialogParent the parent reference component for the {@link PleaseWaitDialog}. Must not be null.122 * @param dialogParent the parent reference component for the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}. Must not be null. 123 123 * @param ids the collection of ids. Empty collection assumed if null. 124 124 * @throws IllegalArgumentException thrown if dialogParent is null -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryTask.java
r5890 r5903 65 65 * Creates the task. 66 66 * 67 * @param parent the parent component relative to which the {@link PleaseWaitDialog} is displayed.67 * @param parent the parent component relative to which the {@link org.openstreetmap.josm.gui.PleaseWaitDialog} is displayed. 68 68 * Must not be null. 69 69 * @param query the query to submit to the OSM server. Must not be null. -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r5724 r5903 429 429 * builds the panel with the table displaying the currently selected primitives 430 430 * 431 * @return 431 * @return panel with current selection 432 432 */ 433 433 protected JPanel buildSelectionTablePanel() { … … 466 466 * build the panel with the buttons on the left 467 467 * 468 * @return 468 * @return left button panel 469 469 */ 470 470 protected JToolBar buildLeftButtonPanel() { … … 535 535 * build the panel with the buttons for adding or removing the current selection 536 536 * 537 * @return 537 * @return control buttons panel for selection/members 538 538 */ 539 539 protected JToolBar buildSelectionControlButtonPanel() {
Note:
See TracChangeset
for help on using the changeset viewer.