01: /*
02: * IGraphController.java
03: *
04: * Created on April 17, 2003, 4:25 PM
05: */
06:
07: package org.netbeans.modules.sql.framework.ui.graph;
08:
09: import java.awt.Point;
10:
11: /**
12: * @author radval
13: */
14: public interface IGraphController {
15:
16: /**
17: * handle node add
18: *
19: * @param xmlInfo IOperatorXmlInfo
20: * @param dropLocation dropLocation
21: */
22: public void handleNodeAdded(IOperatorXmlInfo xmlInfo,
23: Point dropLocation);
24:
25: /**
26: * handle node deletion
27: *
28: * @param node IGraphNode
29: */
30: public void handleNodeRemoved(IGraphNode node);
31:
32: /**
33: * handle new link
34: *
35: * @param from IGraphPort
36: * @param to IGraphPort
37: */
38: public void handleLinkAdded(IGraphPort from, IGraphPort to);
39:
40: /**
41: * handle link deletion
42: *
43: * @param link IGraphLink
44: */
45: public void handleLinkDeleted(IGraphLink link);
46:
47: /**
48: * handle drop
49: *
50: * @param e DropTargetDropEvent
51: */
52: public void handleDrop(java.awt.dnd.DropTargetDropEvent e);
53:
54: /**
55: * handle drop
56: *
57: * @param obj object dropped
58: */
59: public void handleObjectDrop(Object obj);
60:
61: /**
62: * set the data model which this controller modifies
63: *
64: * @param model data model
65: */
66: public void setDataModel(Object model);
67:
68: /**
69: * get the data model which this controller modifies
70: *
71: * @return data model
72: */
73: public Object getDataModel();
74:
75: /**
76: * set the view from which this controller interacts
77: *
78: * @param view view
79: */
80: public void setView(Object view);
81: }
|