Changeset 5881 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2013-04-18T19:03:55+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Version.java
r5874 r5881 230 230 * Returns the full User-Agent string 231 231 * @return The User-Agent 232 * @since 586 6232 * @since 5868 233 233 */ 234 234 public String getFullAgentString() { -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r5798 r5881 135 135 * This method can be used to detect changes in highlight state of primitives. If highlighting was changed 136 136 * then the method will return different number. 137 * @return 137 * @return the current highlight counter 138 138 */ 139 139 public int getHighlightUpdateCount() { … … 149 149 * Replies the history of JOSM selections 150 150 * 151 * @return 151 * @return list of history entries 152 152 */ 153 153 public LinkedList<Collection<? extends OsmPrimitive>> getSelectionHistory() { … … 371 371 * primitive are left unchanged. 372 372 * 373 * @param primitive the primitive373 * @param primitiveId the id of the primitive 374 374 */ 375 375 public void removePrimitive(PrimitiveId primitiveId) { … … 556 556 * *WaySegments* to avoid a VirtualNode class that wouldn't have much use 557 557 * otherwise. 558 * @param Collection of waySegments558 * @param waySegments Collection of way segments 559 559 */ 560 560 public void setHighlightedVirtualNodes(Collection<WaySegment> waySegments) { … … 569 569 /** 570 570 * set what virtual ways should be highlighted. 571 * @param Collection of waySegments571 * @param waySegments Collection of way segments 572 572 */ 573 573 public void setHighlightedWaySegments(Collection<WaySegment> waySegments) { … … 681 681 /** 682 682 * Remove the selection from every value in the collection. 683 * @param list The collectionto remove the selection from.683 * @param osm The collection of ids to remove the selection from. 684 684 */ 685 685 public void clearSelection(PrimitiveId... osm) { … … 950 950 /** 951 951 * Can be called before bigger changes on dataset. Events are disabled until {@link #endUpdate()}. 952 * {@link DataSetListener#dataChanged( )} event is triggered after end of changes952 * {@link DataSetListener#dataChanged(DataChangedEvent event)} event is triggered after end of changes 953 953 * <br> 954 954 * Typical usecase should look like this: … … 1055 1055 * 1056 1056 * This method can be invoked after the globally configured projection method 1057 * changed. In contrast to {@link DataSet#reproject()} it only invalidates the 1058 * cache and doesn't reproject the coordinates. 1057 * changed. 1059 1058 */ 1060 1059 public void invalidateEastNorthCache() { -
trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
r5350 r5881 48 48 * constructor 49 49 * 50 * The visitor will merge <code> theirDataSet</code> onto <code>myDataSet</code>51 * 52 * @param targetDataSet 50 * The visitor will merge <code>sourceDataSet</code> onto <code>targetDataSet</code> 51 * 52 * @param targetDataSet dataset with my primitives. Must not be null. 53 53 * @param sourceDataSet dataset with their primitives. Ignored, if null. 54 54 * @throws IllegalArgumentException thrown if myDataSet is null … … 65 65 66 66 /** 67 * Merges a primitive <code>other</code> of type <P> onto my primitives.67 * Merges a primitive onto primitives dataset. 68 68 * 69 69 * If other.id != 0 it tries to merge it with an corresponding primitive from … … 71 71 * in {@link #conflicts}. 72 72 * 73 * If other.id == 0 it tries to find a primitive in my dataset with id == 0 which73 * If other.id == 0 (new primitive) it tries to find a primitive in my dataset with id == 0 which 74 74 * is semantically equal. If it finds one it merges its technical attributes onto 75 75 * my primitive. 76 76 * 77 * @param <P> the type of the other primitive78 * @param source the otherprimitive77 * @param source the primitive to merge 78 * @param candidates a set of possible candidates for a new primitive 79 79 */ 80 80 protected void mergePrimitive(OsmPrimitive source, Collection<? extends OsmPrimitive> candidates) { … … 385 385 /** 386 386 * Runs the merge operation. Successfully merged {@link OsmPrimitive}s are in 387 * {@link #get MyDataSet()}.387 * {@link #getTargetDataSet()}. 388 388 * 389 389 * See {@link #getConflicts()} for a map of conflicts after the merge operation. … … 395 395 /** 396 396 * Runs the merge operation. Successfully merged {@link OsmPrimitive}s are in 397 * {@link #get MyDataSet()}.397 * {@link #getTargetDataSet()}. 398 398 * 399 399 * See {@link #getConflicts()} for a map of conflicts after the merge operation. … … 443 443 * replies my dataset 444 444 * 445 * @return 445 * @return the own (target) data set 446 446 */ 447 447 public DataSet getTargetDataSet() { -
trunk/src/org/openstreetmap/josm/data/osm/RelationMember.java
r3844 r5881 114 114 * @param role Can be null, in this case it's save as "" 115 115 * @param member Cannot be null 116 * @throw IllegalArgumentException thrown if member is null116 * @throws IllegalArgumentException thrown if member is <code>null</code> 117 117 */ 118 118 public RelationMember(String role, OsmPrimitive member) throws IllegalArgumentException{ -
trunk/src/org/openstreetmap/josm/data/osm/event/DataSetListener.java
r5170 r5881 32 32 * deleted/invisible primitives were resurrected. 33 33 * 34 * @param added Acollection of newly-visible primitives34 * @param event An event for an collection of newly-visible primitives 35 35 */ 36 36 void primitivesAdded(PrimitivesAddedEvent event); … … 40 40 * primitives were marked as deleted. 41 41 * 42 * @param removed Acollection of newly-invisible primitives42 * @param event An event for an collection of newly-invisible primitives 43 43 */ 44 44 void primitivesRemoved(PrimitivesRemovedEvent event); … … 48 48 * a tag addition, tag removal or change in tag value. 49 49 * 50 * @param primthe primitive, whose tags were affected.50 * @param event the event for the primitive, whose tags were affected. 51 51 */ 52 52 void tagsChanged(TagsChangedEvent event); … … 54 54 /** 55 55 * A node's coordinates were modified. 56 * @param node The node that was moved.56 * @param event The event for the node that was moved. 57 57 */ 58 58 void nodeMoved(NodeMovedEvent event); … … 60 60 /** 61 61 * A way's node list was changed. 62 * @param way The way that was modified.62 * @param event The event for the way that was modified. 63 63 */ 64 64 void wayNodesChanged(WayNodesChangedEvent event); … … 66 66 /** 67 67 * A relation's members have changed. 68 * @param relation The relation that was modified.68 * @param event The event for the relation that was modified. 69 69 */ 70 70 void relationMembersChanged(RelationMembersChangedEvent event); … … 73 73 * Minor dataset change, currently only changeset id changed is supported, but can 74 74 * be extended in future. 75 * @param event 75 * @param event the event for data modification 76 76 */ 77 77 void otherDatasetChange(AbstractDatasetChangedEvent event); … … 79 79 /** 80 80 * Called after big changes in dataset. Usually other events are stopped using Dataset.beginUpdate() and 81 * after operation is completed (Dataset.endUpdate()), {@link #dataChanged( )} is called.81 * after operation is completed (Dataset.endUpdate()), {@link #dataChanged(DataChangedEvent event)} is called. 82 82 */ 83 83 void dataChanged(DataChangedEvent event); -
trunk/src/org/openstreetmap/josm/data/osm/event/DatasetEventManager.java
r5170 r5881 22 22 * new layer is selected) 23 23 * 24 * Events in EDT are supported, see {@link #addDatasetListener(DataSetListener, FireMode }24 * Events in EDT are supported, see {@link #addDatasetListener(DataSetListener, FireMode)} 25 25 * 26 26 */ -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java
r5754 r5881 83 83 private DataSet ds; 84 84 85 /** Helper variable for {@link #drawS gement} */85 /** Helper variable for {@link #drawSegment} */ 86 86 private static final double PHI = Math.toRadians(20); 87 /** Helper variable for {@link #drawS gement} */87 /** Helper variable for {@link #drawSegment} */ 88 88 private static final double cosPHI = Math.cos(PHI); 89 /** Helper variable for {@link #drawS gement} */89 /** Helper variable for {@link #drawSegment} */ 90 90 private static final double sinPHI = Math.sin(PHI); 91 91
Note:
See TracChangeset
for help on using the changeset viewer.