Last change
on this file since 148 was 139, checked in by Wouter Pasman, 6 years ago |
#54 added GUI stuff for uncertainty seed. Not yet connected with actual code.
|
File size:
903 bytes
|
Line | |
---|
1 | package genius.gui.tree;
|
---|
2 |
|
---|
3 | import javax.swing.JLabel;
|
---|
4 |
|
---|
5 | import genius.gui.panels.CheckboxPanel;
|
---|
6 | import genius.gui.panels.SliderPanel;
|
---|
7 | import genius.gui.panels.SpinnerPanel;
|
---|
8 | import genius.gui.panels.VflowPanelWithBorder;
|
---|
9 |
|
---|
10 | @SuppressWarnings("serial")
|
---|
11 | public class UncertaintySettingsPanel extends VflowPanelWithBorder {
|
---|
12 | public UncertaintySettingsPanel(UncertaintySettingsModel model) {
|
---|
13 | super("Uncertainty settings");
|
---|
14 | add(new CheckboxPanel("enable uncertainty", model.getIsEnabled()));
|
---|
15 | add(new JLabel(
|
---|
16 | "(Maximum number of rankings = " + model.getTotalBids() + ")"));
|
---|
17 | add(new SliderPanel("Nr. of rankings", model.getComparisons()));
|
---|
18 | add(new SliderPanel("Nr. of errors ", model.getErrors()));
|
---|
19 | add(new SpinnerPanel("Seed (0=random)", model.getSeed()));
|
---|
20 | add(new CheckboxPanel(
|
---|
21 | "Grant parties access to real utility functions (experimental setup)",
|
---|
22 | model.getIsExperimental()));
|
---|
23 | }
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.