45 |
45 |
private GraphicChartPanel pGraphic = null;
|
46 |
46 |
private JPanel panelSlider = null;
|
47 |
47 |
private BoxesPanel pBoxes = null;
|
48 |
|
private DoubleSlider multiSlider = null;
|
|
48 |
private DoubleSlider doubleSlider = null;
|
49 |
49 |
|
50 |
50 |
private boolean bDoCallListeners = true;
|
51 |
51 |
static private int eventId = Integer.MIN_VALUE;
|
... | ... | |
102 |
102 |
private JComponent getPDoubleSlider() {
|
103 |
103 |
if (panelSlider == null) {
|
104 |
104 |
panelSlider = new JPanel();
|
105 |
|
multiSlider = new DoubleSlider();
|
106 |
|
multiSlider.addValueChangedListener(this);
|
107 |
105 |
panelSlider.setLayout(new BorderLayout());
|
108 |
|
panelSlider.add(multiSlider, BorderLayout.CENTER);
|
|
106 |
panelSlider.add(getDoubleSlider(), BorderLayout.CENTER);
|
109 |
107 |
}
|
110 |
108 |
return panelSlider;
|
111 |
109 |
}
|
|
110 |
|
|
111 |
/**
|
|
112 |
* Devuelve el componente DoubleSlider
|
|
113 |
* @return
|
|
114 |
*/
|
|
115 |
private DoubleSlider getDoubleSlider() {
|
|
116 |
if (doubleSlider == null) {
|
|
117 |
doubleSlider = new DoubleSlider();
|
|
118 |
doubleSlider.addValueChangedListener(this);
|
|
119 |
}
|
|
120 |
return doubleSlider;
|
|
121 |
}
|
112 |
122 |
|
113 |
123 |
/**
|
114 |
124 |
* This method initializes jPanel1
|
... | ... | |
144 |
154 |
if (getPBoxes().getControlRight().getValue() < getPBoxes().getControlLeft().getValue())
|
145 |
155 |
getPBoxes().getControlLeft().setValue(getPBoxes().getControlRight().getValue());
|
146 |
156 |
}
|
147 |
|
multiSlider.setX1((int) getPBoxes().getControlLeft().getValue());
|
148 |
|
multiSlider.setX2((int) getPBoxes().getControlRight().getValue());
|
|
157 |
getDoubleSlider().setX1((int) getPBoxes().getControlLeft().getValue());
|
|
158 |
getDoubleSlider().setX2((int) getPBoxes().getControlRight().getValue());
|
149 |
159 |
callValueChangedListeners();
|
150 |
160 |
}
|
151 |
161 |
|