01: /*
02: * uDig - User Friendly Desktop Internet GIS client
03: * http://udig.refractions.net
04: * (C) 2004, Refractions Research Inc.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package net.refractions.udig.project.render;
18:
19: import net.refractions.udig.project.internal.render.RenderingCoordinator;
20:
21: /**
22: * Encapsulates an rendering event.
23: *
24: * @author Jesse
25: * @since 1.0.0
26: */
27: public class RenderEvent {
28: private final RenderingCoordinator source;
29: private final RenderEventType type;
30: private final Object oldValue, newValue;
31:
32: public RenderEvent(final RenderingCoordinator source,
33: final RenderEventType type, final Object oldValue,
34: final Object newValue) {
35: super ();
36: this .source = source;
37: this .type = type;
38: this .oldValue = oldValue;
39: this .newValue = newValue;
40: }
41:
42: public Object getNewValue() {
43: return newValue;
44: }
45:
46: public Object getOldValue() {
47: return oldValue;
48: }
49:
50: public RenderEventType getType() {
51: return type;
52: }
53:
54: public RenderingCoordinator getSource() {
55: return source;
56: }
57:
58: }
|