Revision 39216 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/view/legend/gui/VectorialInterval.java
VectorialInterval.java | ||
---|---|---|
103 | 103 |
private ColorChooserPanel colorChooserPanel = null; |
104 | 104 |
private ColorChooserPanel colorChooserPanel1 = null; |
105 | 105 |
protected JCheckBox chkdefaultvalues = null; |
106 |
protected JComboBox cmbFieldType = null;
|
|
106 |
protected JComboBox cmbIntervalType = null;
|
|
107 | 107 |
private JPanel panelS = null; |
108 | 108 |
private JButton bintervals = null; |
109 | 109 |
private JButton bInsert = null; |
... | ... | |
294 | 294 |
* @return javax.swing.JComboBox |
295 | 295 |
*/ |
296 | 296 |
private JComboBox getCmbIntervalTypes() { |
297 |
if (cmbFieldType == null) {
|
|
298 |
cmbFieldType = new JComboBox();
|
|
299 |
cmbFieldType.setActionCommand("INTERVAL_TYPE");
|
|
300 |
cmbFieldType.addActionListener(listener);
|
|
301 |
cmbFieldType.addItem(PluginServices.getText(this, "equal_intervals"));
|
|
302 |
cmbFieldType.addItem(PluginServices.getText(this,
|
|
297 |
if (cmbIntervalType == null) {
|
|
298 |
cmbIntervalType = new JComboBox();
|
|
299 |
cmbIntervalType.setActionCommand("INTERVAL_TYPE");
|
|
300 |
cmbIntervalType.addActionListener(listener);
|
|
301 |
cmbIntervalType.addItem(PluginServices.getText(this, "equal_intervals"));
|
|
302 |
cmbIntervalType.addItem(PluginServices.getText(this,
|
|
303 | 303 |
"natural_intervals")); |
304 |
cmbFieldType.addItem(PluginServices.getText(this,
|
|
304 |
cmbIntervalType.addItem(PluginServices.getText(this,
|
|
305 | 305 |
"quantile_intervals")); |
306 |
cmbFieldType.setVisible(true);
|
|
306 |
cmbIntervalType.setVisible(true);
|
|
307 | 307 |
} |
308 | 308 |
|
309 |
return cmbFieldType;
|
|
309 |
return cmbIntervalType;
|
|
310 | 310 |
} |
311 | 311 |
|
312 | 312 |
/** |
... | ... | |
615 | 615 |
auxLegend.useDefaultSymbol(false); |
616 | 616 |
} |
617 | 617 |
defaultSymbolPrev.setSymbol(auxLegend.getDefaultSymbol()); |
618 |
cmbFieldType.setSelectedIndex(auxLegend.getIntervalType());
|
|
618 |
cmbIntervalType.setSelectedIndex(auxLegend.getIntervalType());
|
|
619 | 619 |
} |
620 | 620 |
|
621 | 621 |
|
... | ... | |
681 | 681 |
} |
682 | 682 |
|
683 | 683 |
auxLegend.useDefaultSymbol(chkdefaultvalues.isSelected()); |
684 |
auxLegend.setIntervalType(cmbIntervalType.getSelectedIndex()); |
|
685 |
|
|
684 | 686 |
|
685 | 687 |
theLegend = (VectorialIntervalLegend) auxLegend.cloneLegend(); |
686 | 688 |
return theLegend; |
Also available in: Unified diff