Changeset 31341 in osm for applications/editors/josm/plugins
- Timestamp:
- 2015-07-06T11:47:31+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/README
r31185 r31341 1 1 README 2 2 ====== 3 4 Readme for your plugin5 3 6 4 * nokutu <nokutu@openmailbox.org> … … 9 7 10 8 * Feel free to contact me for any bug or suggestion. 9 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryData.java
r31333 r31341 13 13 /** 14 14 * Database class for all the MapillaryImage objects. 15 * 15 * 16 16 * @author nokutu 17 17 * @see MapillaryAbstractImage … … 46 46 /** 47 47 * Adds a set of MapillaryImages to the object, and then repaints mapView. 48 * 48 * 49 49 * @param images 50 50 * The set of images to be added. … … 58 58 /** 59 59 * Adds an MapillaryImage to the object, and then repaints mapView. 60 * 60 * 61 61 * @param image 62 62 * The image to be added. … … 81 81 * Adds a set of MapillaryImages to the object, but doesn't repaint mapView. 82 82 * This is needed for concurrency. 83 * 83 * 84 84 * @param images 85 85 * The set of images to be added. … … 94 94 /** 95 95 * Highlights the image under the cursor. 96 * 96 * 97 97 * @param image 98 98 * The image under the cursor. … … 104 104 /** 105 105 * Returns the image under the mouse cursor. 106 * 106 * 107 107 * @return The image under the mouse cursor. 108 108 */ … … 114 114 * Adds a MapillaryImage to the object, but doesn't repaint mapView. This is 115 115 * needed for concurrency. 116 * 116 * 117 117 * @param image 118 118 * The image to be added. … … 135 135 /** 136 136 * Returns a List containing all images. 137 * 137 * 138 138 * @return A List object containing all images. 139 139 */ … … 144 144 /** 145 145 * Returns the MapillaryImage object that is currently selected. 146 * 146 * 147 147 * @return The selected MapillaryImage object. 148 148 */ … … 215 215 * surrounding thumbnails. If the user does ctrl+click, this isn't 216 216 * triggered. 217 * 217 * 218 218 * @param image 219 219 * The MapillaryImage which is going to be selected … … 229 229 * triggered. You can choose whether to center the view on the new image or 230 230 * not. 231 * 231 * 232 232 * @param image 233 233 * The {@link MapillaryImage} which is going to be selected. … … 282 282 * Adds a MapillaryImage object to the list of selected images, (when ctrl + 283 283 * click) 284 * 284 * 285 285 * @param image 286 286 * The MapillaryImage object to be added. … … 299 299 * Adds a set of {@code MapillaryAbstractImage} objects to the list of 300 300 * selected images. 301 * 301 * 302 302 * @param images 303 303 * A List object containing the set of images to be added. … … 317 317 * Returns a List containing all {@code MapillaryAbstractImage} objects 318 318 * selected with ctrl + click 319 * 319 * 320 320 * @return A List object containing all the images selected. 321 321 */ … … 336 336 /** 337 337 * Returns the amount of images contained by this object. 338 * 338 * 339 339 * @return The amount of images in stored. 340 340 */ -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryImportedImage.java
r31333 r31341 32 32 * Returns the pictures of the file. 33 33 * 34 * @return 34 * @return An BufferedImage object containing the pictures. 35 35 * @throws IOException 36 * @throws IllegalArgumentException if file is currently set to null 36 37 */ 37 38 public BufferedImage getImage() throws IOException { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java
r31333 r31341 166 166 * Returns the MapillaryData object, which acts as the database of the 167 167 * Layer. 168 * 168 * 169 169 * @return 170 170 */ … … 214 214 /** 215 215 * Replies background color for downloaded areas. 216 * 216 * 217 217 * @return background color for downloaded areas. Black by default 218 218 */ … … 223 223 /** 224 224 * Replies background color for non-downloaded areas. 225 * 225 * 226 226 * @return background color for non-downloaded areas. Yellow by default 227 227 */ … … 349 349 /** 350 350 * Draws the highlight of the icon. 351 * 351 * 352 352 * @param g 353 353 * @param p … … 372 372 * Draws the given icon of an image. Also checks if the mouse is over the 373 373 * image. 374 * 374 * 375 375 * @param g 376 376 * @param image … … 428 428 /** 429 429 * Returns the 2 closest images belonging to a different sequence. 430 * 430 * 431 431 * @return 432 432 */ … … 504 504 * When more data is downloaded, a delayed update is thrown, in order to 505 505 * wait for the data bounds to be set. 506 * 506 * 507 507 * @param event 508 508 */ -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryDownloadViewAction.java
r31331 r31341 17 17 /** 18 18 * If in manual mode, downloads all the images in the current view. 19 * 19 * 20 20 * @author nokutu 21 21 * … … 23 23 public class MapillaryDownloadViewAction extends JosmAction { 24 24 25 public static double MAX_AREA = Main.pref.getDouble( 25 public static final double MAX_AREA = Main.pref.getDouble( 26 26 "mapillary.max-download-area", 0.020); 27 27 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillaryImageInfoDownloaderThread.java
r31331 r31341 20 20 /** 21 21 * This thread downloads one of the images in a given area. 22 * 22 * 23 23 * @author nokutu 24 24 * @see MapillarySquareDownloadManagerThread … … 39 39 try { 40 40 BufferedReader br = new BufferedReader(new InputStreamReader( 41 new URL(url).openStream())); 41 new URL(url).openStream(), "UTF-8")); 42 42 JsonObject jsonobj = Json.createReader(br).readObject(); 43 43 if (!jsonobj.getBoolean("more")) -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySequenceDownloadThread.java
r31333 r31341 25 25 * needed MapillaryImage and MapillarySequence objects. It just stores the ones 26 26 * in the given area. 27 * 27 * 28 28 * @author nokutu 29 29 * @see MapillarySquareDownloadManagerThread … … 50 50 BufferedReader br; 51 51 br = new BufferedReader(new InputStreamReader( 52 new URL(url).openStream())); 52 new URL(url).openStream(), "UTF-8")); 53 53 JsonObject jsonall = Json.createReader(br).readObject(); 54 54 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySignDownloaderThread.java
r31331 r31341 35 35 try { 36 36 br = new BufferedReader(new InputStreamReader( 37 new URL(url).openStream())); 37 new URL(url).openStream(), "UTF-8")); 38 38 JsonObject jsonobj = Json.createReader(br).readObject(); 39 39 if (!jsonobj.getBoolean("more")) { -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportTest.java
r31314 r31341 2 2 3 3 import static org.junit.Assert.*; 4 5 import java.io.IOException; 4 6 5 7 import org.junit.Before; … … 14 16 } 15 17 16 @Test 17 public void test() { 18 MapillaryImportedImage img = new MapillaryImportedImage(0,0,0, null); 19 assert(true); 20 } 18 19 @Test(expected=IllegalArgumentException.class) 20 public void test() throws IOException { 21 MapillaryImportedImage img = new MapillaryImportedImage(0,0,0, null); 22 img.getImage(); 23 } 21 24 22 25 }
Note:
See TracChangeset
for help on using the changeset viewer.