source: josm/trunk/src/org/openstreetmap/josm/gui/MapFrameListener.java@ 6388

Last change on this file since 6388 was 5957, checked in by Don-vip, 11 years ago

New interface MapFrameListener to allow core classes to listen to MapFrame changes (previously only plugins could be notified of these changes)

File size: 587 bytes
Line 
1// License: GPL. See LICENSE file for details.
2package org.openstreetmap.josm.gui;
3
4/**
5 * Listener notified of MapFrame changes.
6 * @since 5957
7 */
8public interface MapFrameListener {
9
10 /**
11 * Called after Main.mapFrame is initalized. (After the first data is loaded).
12 * You can use this callback to tweak the newFrame to your needs, as example install
13 * an alternative Painter.
14 * @param oldFrame The old MapFrame
15 * @param newFrame The new MapFrame
16 */
17 public abstract void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame);
18}
Note: See TracBrowser for help on using the repository browser.