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