Changeset 10281 in josm


Ignore:
Timestamp:
2016-05-25T20:42:23+02:00 (7 years ago)
Author:
Don-vip
Message:

GSOC core rework - LayerManager, see #12863, restore a public method as deprecated to ease plugin update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r10279 r10281  
    732732    }
    733733
     734    /**
     735     * Creates a list of the visible layers in Z-Order, the layer with the lowest Z-Order
     736     * first, layer with the highest Z-Order last.
     737     * <p>
     738     * The active data layer is pulled above all adjacent data layers.
     739     * <p>
     740     * To be removed: end of 2016.
     741     *
     742     * @return a list of the visible in Z-Order, the layer with the lowest Z-Order
     743     * first, layer with the highest Z-Order last.
     744     * @deprecated Access the layer list using {@link Main#getLayerManager()} instead.
     745     */
     746    @Deprecated
     747    public List<Layer> getVisibleLayersInZOrder() {
     748        return layerManager.getVisibleLayersInZOrder();
     749    }
     750
    734751    private void paintLayer(Layer layer, Graphics2D g, Bounds box) {
    735752        if (layer.getOpacity() < 1) {
Note: See TracChangeset for help on using the changeset viewer.