Package: SelectAllAction
SelectAllAction
| name | instruction | branch | complexity | line | method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SelectAllAction(String, ConfigurationGraph) | 
 | 
 | 
 | 
 | 
 | ||||||||||||||||||||
| actionPerformed(ActionEvent) | 
 | 
 | 
 | 
 | 
 | ||||||||||||||||||||
Coverage
1: package networkconfigurator.actions;
2: 
3: import java.awt.event.ActionEvent;
4: 
5: import networkconfigurator.ConfigurationGraph;
6: import networkconfigurator.item.Item;
7: 
8: /**
9:  * 
10:  * @author Friederike Stock selects all Nodes
11:  */
12: public class SelectAllAction extends AbstractConfigurationGraphAction {
13:         /**
14:          * the constructor.
15:          * 
16:          * @param name
17:          *            the name.
18:          * @param graph
19:          *            the graph.
20:          */
21:         public SelectAllAction(final String name, final ConfigurationGraph graph) {
22:                 super(name, graph);
23:         }
24: 
25:         @Override
26:         public void actionPerformed(final ActionEvent arg0) {
27:                 Item.selectAll(this.getGraph().getItems());
28:                 this.getGraph().repaint();
29:         }
30: 
31: }