Revision 12127 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/panels/TranspByPixelRGBInputPanel.java
TranspByPixelRGBInputPanel.java | ||
---|---|---|
38 | 38 |
* @author Nacho Brodin (brodin_ign@gva.es) |
39 | 39 |
*/ |
40 | 40 |
public class TranspByPixelRGBInputPanel extends JPanel implements DoubleSliderListener { |
41 |
private static final long serialVersionUID = 5858119425941331458L;
|
|
42 |
private int[] rangeRed = null;
|
|
43 |
private int[] rangeGreen = null;
|
|
44 |
private int[] rangeBlue = null;
|
|
45 |
private boolean validValue = true;
|
|
46 |
CheckColorSliderTextContainer tRed = null; |
|
47 |
CheckColorSliderTextContainer tGreen = null; |
|
48 |
CheckColorSliderTextContainer tBlue = null; |
|
49 |
CheckColorSliderTextContainer tAlpha = null; |
|
41 |
private static final long serialVersionUID = 5858119425941331458L;
|
|
42 |
private int[] rangeRed = null;
|
|
43 |
private int[] rangeGreen = null;
|
|
44 |
private int[] rangeBlue = null;
|
|
45 |
private boolean validValue = false;
|
|
46 |
CheckColorSliderTextContainer tRed = null;
|
|
47 |
CheckColorSliderTextContainer tGreen = null;
|
|
48 |
CheckColorSliderTextContainer tBlue = null;
|
|
49 |
CheckColorSliderTextContainer tAlpha = null;
|
|
50 | 50 |
|
51 | 51 |
/** |
52 | 52 |
* This is the default constructor |
... | ... | |
55 | 55 |
super(); |
56 | 56 |
initialize(); |
57 | 57 |
updateColors(); |
58 |
validateValues(); |
|
58 | 59 |
} |
59 | 60 |
|
60 | 61 |
/** |
... | ... | |
266 | 267 |
tBlue.setColor2(new Color(r, g, 255)); |
267 | 268 |
} |
268 | 269 |
|
269 |
public void actionValueChanged(DoubleSliderEvent e) { |
|
270 |
updateColors(); |
|
270 |
public void validateValues() { |
|
271 | 271 |
validValue = true; |
272 | 272 |
rangeRed = null; |
273 | 273 |
rangeGreen = null; |
... | ... | |
302 | 302 |
} |
303 | 303 |
} |
304 | 304 |
} |
305 |
|
|
306 |
public void actionValueChanged(DoubleSliderEvent e) { |
|
307 |
updateColors(); |
|
308 |
validateValues(); |
|
309 |
} |
|
305 | 310 |
} |
Also available in: Unified diff