01: package net.refractions.udig.project.render.displayAdapter;
02:
03: /**
04: * An interface for objects to listen to the MapEditor
05: * <p>
06: * All events are executed in a back ground thread so updating the UI must be done using the
07: * {@linkplain org.eclipse.swt.widgets.Display#asyncExec(java.lang.Runnable)}method or the
08: * {@linkplain org.eclipse.swt.widgets.Display#syncExec(java.lang.Runnable)}method
09: * </p>
10: *
11: * @author jeichar
12: * @since 0.2
13: */
14: public interface IMapDisplayListener {
15:
16: /**
17: * Called with the size of the MapEditor has changed.
18: * <p>
19: * All events are executed in a back ground thread so updating the UI must be done using the
20: * {@linkplain org.eclipse.swt.widgets.Display#asyncExec(java.lang.Runnable)}method or the
21: * {@linkplain org.eclipse.swt.widgets.Display#syncExec(java.lang.Runnable)}method
22: * </p>
23: *
24: * @param event An event with a reference to the MapEditor and the new size.
25: */
26: public void sizeChanged(MapDisplayEvent event);
27: }
|