Changeset 5881 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-04-18T19:03:55+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/RelationMemberConflictResolverCommand.java
r5266 r5881 38 38 * @param my my relation 39 39 * @param their their relation 40 * @param merged NodeListthe list of merged relation members40 * @param mergedMembers the list of merged relation members 41 41 */ 42 42 public RelationMemberConflictResolverCommand(Relation my, Relation their, List<RelationMember> mergedMembers) { -
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 -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionList.java
r5266 r5881 132 132 * are not null and which do not exist yet in the list are added. 133 133 * 134 * @param value a list of strings to add134 * @param values a list of strings to add 135 135 * @param priority the priority to use 136 136 */ -
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r5797 r5881 172 172 /** 173 173 * Return s new BasicStroke object with given thickness and style 174 * @param code = 3.5 -> thickness=3.5px 175 * @ param code = 3.5 10 5 -> thickness=3.5px, dashed: 10px filled + 5px empty174 * @param code = 3.5 -> thickness=3.5px; 3.5 10 5 -> thickness=3.5px, dashed: 10px filled + 5px empty 175 * @return stroke for drawing 176 176 */ 177 177 public static Stroke getCustomizedStroke(String code) { -
trunk/src/org/openstreetmap/josm/gui/widgets/HtmlPanel.java
r5266 r5881 16 16 * HTML. 17 17 * 18 * It displays HTML text in the same font as {@link JLabel}. Hyperlinks are rendered in18 * It displays HTML text in the same font as {@link javax.swing.JLabel}. Hyperlinks are rendered in 19 19 * blue and they are underlined. There is also a CSS rule for the HTML tag <strong> 20 20 * configured. -
trunk/src/org/openstreetmap/josm/io/CacheFiles.java
r4932 r5881 51 51 /** 52 52 * Creates a new cache class. The ident will be used to store the files on disk and to save 53 * expire/space settings. 54 * @param ident 53 * expire/space settings. Set plugin state to <code>true</code>. 54 * @param ident cache identifier 55 55 */ 56 56 public CacheFiles(String ident) { … … 58 58 } 59 59 60 /** 61 * Creates a new cache class. The ident will be used to store the files on disk and to save 62 * expire/space settings. 63 * @param ident cache identifier 64 * @param isPlugin Whether this is a plugin or not (changes cache path) 65 */ 60 66 public CacheFiles(String ident, boolean isPlugin) { 61 67 String pref = isPlugin ? … … 87 93 /** 88 94 * Loads the data for the given ident as an byte array. Returns null if data not available. 89 * @param ident 90 * @return 95 * @param ident cache identifier 96 * @return stored data 91 97 */ 92 98 public byte[] getData(String ident) { … … 118 124 /** 119 125 * Writes an byte-array to disk 120 * @param ident 121 * @param data 126 * @param ident cache identifier 127 * @param data data to store 122 128 */ 123 129 public void saveData(String ident, byte[] data) { … … 140 146 /** 141 147 * Loads the data for the given ident as an image. If no image is found, null is returned 142 * @param ident Identifier148 * @param ident cache identifier 143 149 * @return BufferedImage or null 144 150 */ … … 167 173 /** 168 174 * Saves a given image and ident to the cache 169 * @param ident 170 * @param image 175 * @param ident cache identifier 176 * @param image imaga data for storage 171 177 */ 172 178 public void saveImg(String ident, BufferedImage image) { … … 211 217 212 218 /** 213 * Call this with trueto update the last modification time when a file it is read.214 * Call this with falseto not update the last modification time when a file is read.215 * @param to 219 * Call this with <code>true</code> to update the last modification time when a file it is read. 220 * Call this with <code>false</code> to not update the last modification time when a file is read. 221 * @param to update state 216 222 */ 217 223 public void setUpdateModTime(boolean to) { … … 323 329 /** 324 330 * Gets file path for ident with customizable file-ending 325 * @param ident 326 * @param ending 327 * @return File331 * @param ident cache identifier 332 * @param ending file extension 333 * @return file structure 328 334 */ 329 335 private File getPath(String ident, String ending) { … … 333 339 /** 334 340 * Gets file path for ident 335 * @param ident 336 * @param ending 337 * @return File 341 * @param ident cache identifier 342 * @return file structure 338 343 */ 339 344 private File getPath(String ident) { … … 343 348 /** 344 349 * Checks whether a given file is expired 345 * @param file 346 * @return expired ?350 * @param file file description structure 351 * @return expired state 347 352 */ 348 353 private boolean isExpired(File file) { -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r5874 r5881 296 296 /** 297 297 * Makes an XML string from an OSM primitive. Uses the OsmWriter class. 298 * @param o the OSM primitive 299 * @param addBody true to generate the full XML, false to only generate the encapsulating tag 298 * @param s the changeset 300 299 * @return XML string 301 300 */ -
trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java
r5345 r5881 20 20 * constructor (for private and subclasses use only) 21 21 * 22 * @see #parseDataSet(InputStream, DataSet,ProgressMonitor)22 * @see #parseDataSet(InputStream, ProgressMonitor) 23 23 */ 24 24 protected OsmChangeReader() { … … 90 90 * Parse the given input source and return the dataset. 91 91 * 92 * @param source the source input stream. Must not be null. 93 * @param progressMonitor the progress monitor. If null, {@link NullProgressMonitor#INSTANCE} is assumed 92 * @param source the source input stream. Must not be <code>null</code>. 93 * @param progressMonitor the progress monitor. If <code>null</code>, 94 * {@link org.openstreetmap.josm.gui.progress.NullProgressMonitor#INSTANCE} is assumed 94 95 * 95 96 * @return the dataset with the parsed data 96 97 * @throws IllegalDataException thrown if the an error was found while parsing the data from the source 97 * @throws IllegalArgumentException thrown if source is null98 * @throws IllegalArgumentException thrown if source is <code>null</code> 98 99 */ 99 100 public static DataSet parseDataSet(InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException { -
trunk/src/org/openstreetmap/josm/io/OsmConnection.java
r4690 r5881 142 142 * 143 143 * @return true if this connection is canceled 144 * @return145 144 */ 146 145 public boolean isCanceled() { -
trunk/src/org/openstreetmap/josm/io/OsmHistoryReader.java
r5346 r5881 33 33 * 34 34 * It is slightly different from {@link OsmReader} because we don't build an internal graph of 35 * {@link OsmPrimitive}s. We use objects derived from {@link HistoryOsmPrimitive} instead and we36 * keep the data in a dedicated {@link HistoryDataSet}.35 * {@link org.openstreetmap.josm.data.osm.OsmPrimitive}s. We use objects derived from 36 * {@link HistoryOsmPrimitive} instead and we keep the data in a dedicated {@link HistoryDataSet}. 37 37 * 38 38 */ -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r5859 r5881 73 73 * constructor (for private and subclasses use only) 74 74 * 75 * @see #parseDataSet(InputStream, DataSet,ProgressMonitor)75 * @see #parseDataSet(InputStream, ProgressMonitor) 76 76 */ 77 77 protected OsmReader() { -
trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java
r5874 r5881 79 79 80 80 /** 81 * constructor82 * 83 * @param id the id of the primitive. > 0 expected84 * @param readFull true, if referers should be read fully (i.e. including their immediate children)81 * Creates a back reference reader for given primitive 82 * 83 * @param primitive the primitive 84 * @param readFull <code>true</code>, if referers should be read fully (i.e. including their immediate children) 85 85 * 86 86 */ … … 91 91 92 92 /** 93 * constructor 94 * 95 * @param primitive the primitive whose referers are to be read 93 * Creates a back reference reader for given primitive id 94 * 95 * @param id the id of the primitive whose referers are to be read 96 * @param type the type of the primitive 96 97 * @param readFull true, if referers should be read fully (i.e. including their immediate children) 97 98 * … … 196 197 * 197 198 * <ul> 198 * <li>if this reader reads referers for a {@link Node}, referring ways are always199 * <li>if this reader reads referers for a {@link org.openstreetmap.josm.data.osm.Node}, referring ways are always 199 200 * read individually from the server</li> 200 201 * <li>if this reader reads referers for an {@link Way} or a {@link Relation}, referring relations -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r5877 r5881 99 99 if (line != null && !line.isEmpty()) { 100 100 line = line.replaceAll("\"+",""); 101 line = line.replaceAll("NAME=",""); // strange code for some Gentoo's 101 102 if(line.startsWith("Linux ")) // e.g. Linux Mint 102 103 return line; -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r5874 r5881 598 598 * @return An buffered stream reader for the given URL (using UTF-8) 599 599 * @throws IOException if an I/O exception occurs. 600 * @since 586 7600 * @since 5868 601 601 */ 602 602 public static BufferedReader openURLReader(URL url) throws IOException {
Note:
See TracChangeset
for help on using the changeset viewer.