source: domaineditor/src/main/java/geniusweb/domaineditor/panels/profile/NumberValueSetUtilitiesPanel.java@ 52

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 
1package geniusweb.domaineditor.panels.profile;
2
3import java.awt.GridLayout;
4
5import javax.swing.JPanel;
6
7import geniusweb.domaineditor.model.profile.NumberValueSetUtilitiesModel;
8import tudelft.utilities.mvc.panels.NumberPanel;
9import 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")
16public 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.