Revision 18385 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/georeferencing/ui/launcher/GeorefLauncherDialog.java
GeorefLauncherDialog.java | ||
---|---|---|
126 | 126 |
public int getType() { |
127 | 127 |
return geoLauncherPanel.getTypeSelectionPanel().getType(); |
128 | 128 |
} |
129 |
|
|
130 |
/** |
|
131 |
* Obtiene el tipo de algoritmo seleccionado |
|
132 |
* @return Cte definida en Georeferencing |
|
133 |
*/ |
|
134 |
public int getAlgorithm() { |
|
135 |
return geoLauncherPanel.getAlgorithmSelectionPanel().getAlgorithm(); |
|
136 |
} |
|
137 |
|
|
138 |
/** |
|
139 |
* Obtiene el grado del algoritmo |
|
140 |
* @return |
|
141 |
*/ |
|
142 |
public int getDegree() { |
|
143 |
String degree = ((String)geoLauncherPanel.getAlgorithmSelectionPanel().getDegreeList().getSelectedItem()); |
|
144 |
String[] l = degree.split(" "); |
|
145 |
degree = l[l.length - 1]; |
|
146 |
try { |
|
147 |
return Integer.valueOf(degree).intValue(); |
|
148 |
}catch (NumberFormatException e) { |
|
149 |
return -1; |
|
150 |
} |
|
151 |
} |
|
152 |
|
|
129 | 153 |
} |
130 | 154 |
|
Also available in: Unified diff