1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package p3j.gui.panels.projections;
17
18
19 import javax.swing.JPanel;
20 import javax.swing.tree.TreePath;
21
22 import p3j.gui.misc.SubNodeSummary;
23 import p3j.gui.panels.PropertiesShowPanelFactory;
24 import p3j.pppm.parameters.ParameterInstance;
25 import p3j.pppm.parameters.Population;
26
27
28
29
30
31
32
33
34
35
36
37 public class PopulationNode extends ProjectionTreeNode<Population> {
38
39
40
41
42 private static final long serialVersionUID = 6366143563278777563L;
43
44
45
46
47
48
49
50 public PopulationNode(Population population) {
51 super(population, population.toString());
52 }
53
54 @Override
55 public JPanel selected(TreePath selectionPath, final IProjectionTree projTree) {
56 PropertiesShowPanelFactory pspf = new PropertiesShowPanelFactory();
57 pspf.sep("General Information");
58 pspf.app("Population:", getEntity());
59 pspf.app("Parameters:", this.getChildCount());
60 pspf.appPreview(new SubNodeSummary<ParameterInstance>(this, projTree,
61 ParameterInstance.class));
62 return pspf.constructPanel();
63 }
64 }