Revision 10963 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/histogram/ui/HistogramPanel.java
HistogramPanel.java | ||
---|---|---|
21 | 21 |
import java.awt.BorderLayout; |
22 | 22 |
import java.awt.GridBagConstraints; |
23 | 23 |
import java.awt.GridBagLayout; |
24 |
import java.util.Vector;
|
|
24 |
import java.util.ArrayList;
|
|
25 | 25 |
|
26 | 26 |
import javax.swing.JButton; |
27 | 27 |
import javax.swing.JComboBox; |
... | ... | |
52 | 52 |
private static final long serialVersionUID = 2772897994667886753L; |
53 | 53 |
|
54 | 54 |
private HistogramPanelListener histogramPanelListener = null; |
55 |
private Vector comboSource = new Vector();
|
|
55 |
private ArrayList comboSource = new ArrayList();
|
|
56 | 56 |
|
57 | 57 |
public static int MAXBANDS = 10; |
58 | 58 |
private int HSUP = 60; |
... | ... | |
486 | 486 |
} |
487 | 487 |
|
488 | 488 |
public void setHistogramableSource(IHistogramable lyr, String name) { |
489 |
Vector aux = new Vector();
|
|
489 |
ArrayList aux = new ArrayList();
|
|
490 | 490 |
aux.add(lyr); |
491 | 491 |
aux.add(name); |
492 | 492 |
comboSource.add(aux); |
493 | 493 |
updateComboBoxSource(); |
494 | 494 |
} |
495 | 495 |
|
496 |
public Vector getComboSource() {
|
|
496 |
public ArrayList getComboSource() {
|
|
497 | 497 |
return comboSource; |
498 | 498 |
} |
499 | 499 |
|
500 | 500 |
private void updateComboBoxSource() { |
501 | 501 |
getJComboBoxOrigen().removeAllItems(); |
502 | 502 |
for (int i = 0; i < comboSource.size(); i++) { |
503 |
getJComboBoxOrigen().addItem(((Vector) comboSource.get(i)).get(1));
|
|
503 |
getJComboBoxOrigen().addItem(((ArrayList) comboSource.get(i)).get(1));
|
|
504 | 504 |
} |
505 | 505 |
|
506 | 506 |
} |
507 | 507 |
|
508 | 508 |
public void clearSources() { |
509 |
comboSource = new Vector();
|
|
509 |
comboSource = new ArrayList();
|
|
510 | 510 |
updateComboBoxSource(); |
511 | 511 |
} |
512 | 512 |
} |
Also available in: Unified diff