Skip to contentMethod: getGraph()
      1: package networkconfigurator.actions;
2: 
3: import javax.swing.AbstractAction;
4: 
5: import networkconfigurator.ConfigurationGraph;
6: 
7: /**
8:  * Abstarct Action for the configuration.
9:  * 
10:  * @author Max Hölscher
11:  *
12:  */
13: public abstract class AbstractConfigurationGraphAction extends AbstractAction {
14:         /**
15:          * the graph.
16:          */
17:         private final ConfigurationGraph graph;
18: 
19:         /**
20:          * The Constructor.
21:          * 
22:          * @param name
23:          *            the name.
24:          * @param graph
25:          *            the graph.
26:          */
27:         public AbstractConfigurationGraphAction(final String name, final ConfigurationGraph graph) {
28:                 super(name);
29:                 this.graph = graph;
30:         }
31: 
32:         /**
33:          * getter of the graph.
34:          * 
35:          * @return the graph.
36:          */
37:         ConfigurationGraph getGraph() {
38:                 return this.graph;
39:         }
40: 
41: }