01: package prefuse.data.event;
02:
03: import java.util.EventListener;
04:
05: import prefuse.data.column.Column;
06:
07: /**
08: * Listener interface for monitoring changes to a data column.
09: *
10: * @author <a href="http://jheer.org">jeffrey heer</a>
11: */
12: public interface ColumnListener extends EventListener {
13:
14: /**
15: * Notification that a data column has changed.
16: * @param src the column that has changed
17: * @param type One of {@link EventConstants#INSERT},
18: * {@link EventConstants#DELETE}, or {@link EventConstants#UPDATE}.
19: * @param start the first column index that has been changed
20: * @param end the last column index that has been changed
21: */
22: public void columnChanged(Column src, int type, int start, int end);
23:
24: /**
25: * Notification that a data column has changed.
26: * @param src the column that has changed
27: * @param idx the column row index that has changed
28: * @param prev the previous value at the given location
29: */
30: public void columnChanged(Column src, int idx, int prev);
31:
32: /**
33: * Notification that a data column has changed.
34: * @param src the column that has changed
35: * @param idx the column row index that has changed
36: * @param prev the previous value at the given location
37: */
38: public void columnChanged(Column src, int idx, long prev);
39:
40: /**
41: * Notification that a data column has changed.
42: * @param src the column that has changed
43: * @param idx the column row index that has changed
44: * @param prev the previous value at the given location
45: */
46: public void columnChanged(Column src, int idx, float prev);
47:
48: /**
49: * Notification that a data column has changed.
50: * @param src the column that has changed
51: * @param idx the column row index that has changed
52: * @param prev the previous value at the given location
53: */
54: public void columnChanged(Column src, int idx, double prev);
55:
56: /**
57: * Notification that a data column has changed.
58: * @param src the column that has changed
59: * @param idx the column row index that has changed
60: * @param prev the previous value at the given location
61: */
62: public void columnChanged(Column src, int idx, boolean prev);
63:
64: /**
65: * Notification that a data column has changed.
66: * @param src the column that has changed
67: * @param idx the column row index that has changed
68: * @param prev the previous value at the given location
69: */
70: public void columnChanged(Column src, int idx, Object prev);
71:
72: } // end of interface ColumnListener
|