Changeset 2512 in josm for trunk/src/org/openstreetmap/josm/gui/MapView.java
- Timestamp:
- 2009-11-24T10:45:04+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r2450 r2512 50 50 import org.openstreetmap.josm.gui.layer.markerlayer.PlayHeadMarker; 51 51 import org.openstreetmap.josm.tools.AudioPlayer; 52 53 52 54 53 /** … … 151 150 /** 152 151 * Adds a GPX layer. A GPX layer is added below the lowest data layer. 153 * 152 * 154 153 * @param layer the GPX layer 155 154 */ … … 214 213 /** 215 214 * Replies true if the active layer is drawable. 216 * 215 * 217 216 * @return true if the active layer is drawable, false otherwise 218 217 */ … … 223 222 /** 224 223 * Replies true if the active layer is visible. 225 * 224 * 226 225 * @return true if the active layer is visible, false otherwise 227 226 */ … … 244 243 * <li>otherwise, the top most layer of any type becomes active</li> 245 244 * </ul> 246 * 245 * 247 246 * @return the next active data layer 248 247 */ … … 304 303 * Moves the layer to the given new position. No event is fired, but repaints 305 304 * according to the new Z-Order of the layers. 306 * 305 * 307 306 * @param layer The layer to move 308 307 * @param pos The new position of the layer … … 324 323 } 325 324 326 327 325 public int getLayerPos(Layer layer) { 328 326 int curLayerPos = layers.indexOf(layer); … … 335 333 * Creates a list of the visible layers in Z-Order, the layer with the lowest Z-Order 336 334 * first, layer with the highest Z-Order last. 337 * 335 * 338 336 * @return a list of the visible in Z-Order, the layer with the lowest Z-Order 339 337 * first, layer with the highest Z-Order last. … … 483 481 /** 484 482 * Replies an unmodifiable list of layers of a certain type. 485 * 483 * 486 484 * Example: 487 485 * <pre> 488 486 * List<WMSLayer> wmsLayers = getLayersOfType(WMSLayer.class); 489 487 * </pre> 490 * 488 * 491 489 * @return an unmodifiable list of layers of a certain type. 492 490 */ … … 503 501 /** 504 502 * Replies the number of layers managed by this mav view 505 * 503 * 506 504 * @return the number of layers managed by this mav view 507 505 */ … … 512 510 /** 513 511 * Replies true if there is at least one layer in this map view 514 * 512 * 515 513 * @return true if there is at least one layer in this map view 516 514 */ … … 522 520 * Sets the active layer to <code>layer</code>. If <code>layer</code> is an instance 523 521 * of {@see OsmDataLayer} also sets {@see #editLayer} to <code>layer</code>. 524 * 522 * 525 523 * @param layer the layer to be activate; must be one of the layers in the list of layers 526 524 * @exception IllegalArgumentException thrown if layer is not in the lis of layers … … 559 557 /** 560 558 * Replies the currently active layer 561 * 559 * 562 560 * @return the currently active layer (may be null) 563 561 */ … … 568 566 /** 569 567 * Replies the current edit layer, if any 570 * 568 * 571 569 * @return the current edit layer. May be null. 572 570 */ … … 586 584 /** 587 585 * replies true if the list of layers managed by this map view contain layer 588 * 586 * 589 587 * @param layer the layer 590 588 * @return true if the list of layers managed by this map view contain layer
Note:
See TracChangeset
for help on using the changeset viewer.