Skip to content

Package: SelectAllAction

SelectAllAction

nameinstructionbranchcomplexitylinemethod
SelectAllAction(String, ConfigurationGraph)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
actionPerformed(ActionEvent)
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%

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: }