001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui;
003
004/**
005 * Listener notified of MapFrame changes.
006 * @since 5957
007 * @since 10600 (functional interface)
008 */
009@FunctionalInterface
010public interface MapFrameListener {
011
012    /**
013     * Called after Main.mapFrame is initialized. (After the first data is loaded).
014     * You can use this callback to tweak the newFrame to your needs, as example install
015     * an alternative Painter.
016     * @param oldFrame The old MapFrame
017     * @param newFrame The new MapFrame
018     */
019    void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame);
020}