Revision 1319 org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.algorithm/org.gvsig.raster.tools.algorithm.swing/org.gvsig.raster.tools.algorithm.swing.impl/src/main/java/org/gvsig/raster/tools/algorithm/swing/impl/maskthreshold/MaskThresholdDataImpl.java

View differences:

MaskThresholdDataImpl.java
43 43
			return obj;
44 44
	}
45 45
	
46
	public Object getOperationLayer() {
47
		Object obj = panel.getOperationMaskThresholdPanel().getLayerSelection()
48
			.getInputLayerCombo().getSelectedItem();
49
		if(obj == null)
50
			return panel.getOperationMaskThresholdPanel().getLayerSelection()
51
				.getInputLayerCombo().getItemAt(0);
52
		else
53
			return obj;
54
	}
55
	
56
	public Object getOutputInputLayer() {
57
		Object obj = panel.getOutputMaskThresholdPanel().getLayerSelection()
58
			.getInputLayerCombo().getSelectedItem();
59
		if(obj == null)
60
			return panel.getOutputMaskThresholdPanel().getLayerSelection()
61
				.getInputLayerCombo().getItemAt(0);
62
		else
63
			return obj;
64
	}
65
	
46 66
	public int getBandInputLayer() {
47 67
		return panel.getLayerSelection().getBandsSelectorCombo()
48 68
			.getSelectedIndex() - 1;
......
67 87
		}
68 88
	}
69 89
	
70
	public Object getOperationLayer() {
71
		Object obj = panel.getOperationMaskThresholdPanel().getLayerSelection()
72
			.getInputLayerCombo().getSelectedItem();
73
		if(obj == null)
74
			return panel.getOperationMaskThresholdPanel().getLayerSelection()
75
				.getInputLayerCombo().getItemAt(0);
76
		else
77
			return obj;
78
	}
79
	
80 90
	public int getBandOperationLayer() {
81 91
		return panel.getOperationMaskThresholdPanel().getLayerSelection()
82 92
			.getBandsSelectorCombo().getSelectedIndex() - 1;
83 93
	}
84 94
	
85
	public Object getOutputInputLayer() {
86
		Object obj = panel.getOutputMaskThresholdPanel().getLayerSelection()
87
			.getInputLayerCombo().getSelectedItem();
88
		if(obj == null)
89
			return panel.getOutputMaskThresholdPanel().getLayerSelection()
90
				.getInputLayerCombo().getItemAt(0);
91
		else
92
			return obj;
93
	}
94
	
95 95
	public int getBandOutputLayer() {
96 96
		return panel.getOutputMaskThresholdPanel().getLayerSelection()
97 97
			.getBandsSelectorCombo().getSelectedIndex() - 1;

Also available in: Unified diff