01: package net.refractions.udig.project.render.displayAdapter;
02:
03: import java.awt.Dimension;
04:
05: /**
06: * TODO Purpose of net.refractions.udig.project.render.displayAdapter
07: * <p>
08: * </p>
09: *
10: * @author Jesse
11: * @since 1.0.0
12: */
13: public class MapDisplayEvent {
14: private IMapDisplay source;
15:
16: private Dimension size;
17:
18: private Dimension old;
19:
20: /**
21: * Creates a new instance of MapDisplayEvent
22: *
23: * @param source The IMapDisplay that raised the event.
24: * @param size The new size of the IMapDisplay
25: * @param old The old size of the IMapDisplay
26: */
27: public MapDisplayEvent(IMapDisplay source, Dimension old,
28: Dimension size) {
29: this .source = source;
30: this .size = size;
31: this .old = old;
32: }
33:
34: /**
35: * The IMapDisplay that raised the event.
36: *
37: * @return The IMapDisplay that raised the event.
38: * @uml.property name="source"
39: */
40: public IMapDisplay getSource() {
41: return source;
42: }
43:
44: /**
45: * Returns The new size of the IMapDisplay
46: *
47: * @return The new size of the IMapDisplay
48: * @see Dimension
49: * @uml.property name="size"
50: */
51: public Dimension getSize() {
52: return size;
53: }
54:
55: /**
56: * Returns The old size of the IMapDisplay
57: *
58: * @return The old size of the IMapDisplay
59: * @see Dimension
60: */
61: public Dimension getOldSize() {
62: return old;
63: }
64: }
|