Last change
on this file since 52 was 52, checked in by ruud, 14 months ago |
Fixed small issues in domaineditor.
|
File size:
878 bytes
|
Line | |
---|
1 | package geniusweb.domaineditor.panels.profile;
|
---|
2 |
|
---|
3 | import java.awt.GridLayout;
|
---|
4 |
|
---|
5 | import javax.swing.JPanel;
|
---|
6 |
|
---|
7 | import geniusweb.domaineditor.model.profile.NumberValueSetUtilitiesModel;
|
---|
8 | import tudelft.utilities.mvc.panels.NumberPanel;
|
---|
9 | import tudelft.utilities.mvc.panels.SliderPanel;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * View/Controller of the {@link NumberValueSetUtilitiesModel}. Allows the user
|
---|
13 | * to change utilities of the low and high point.
|
---|
14 | */
|
---|
15 | @SuppressWarnings("serial")
|
---|
16 | public class NumberValueSetUtilitiesPanel extends JPanel {
|
---|
17 | private final NumberValueSetUtilitiesModel model;
|
---|
18 |
|
---|
19 | public NumberValueSetUtilitiesPanel(NumberValueSetUtilitiesModel model) {
|
---|
20 | this.model = model;
|
---|
21 | setLayout(new GridLayout(2, 2));
|
---|
22 | add(new NumberPanel(model.getLowValue()));
|
---|
23 | add(new SliderPanel(model.getLowUtility()));
|
---|
24 | add(new NumberPanel(model.getHighValue()));
|
---|
25 | add(new SliderPanel(model.getHighUtility()));
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.