01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.tools.edit.support;
16:
17: import java.util.List;
18:
19: /**
20: * Listens to a blackboard for events such as geometries being added or set and coordinates being moved, deleted,
21: * added, etc...
22: *
23: * @author jones
24: * @since 1.1.0
25: */
26: public interface EditBlackboardListener {
27:
28: /**
29: * Indicates that something on the {@link EditBlackboard} has changed. Event object
30: * has the details
31: *
32: * @param e details of the event.
33: */
34: void changed(EditBlackboardEvent e);
35:
36: /**
37: * Indicates that many changes have taken place on the {@link EditBlackboard} and all
38: * the changes have been batched into a list (in order of occurance) of events.
39: *
40: * @param e events that have taken place. Events are ordered in order of occurance. The
41: * first event in the list was the first event to fire.
42: */
43: void batchChange(List<EditBlackboardEvent> e);
44: }
|