Revision 11480 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/cutting/ui/ResolutionPanel.java
ResolutionPanel.java | ||
---|---|---|
30 | 30 |
import javax.swing.JRadioButton; |
31 | 31 |
|
32 | 32 |
import org.gvsig.gui.beans.datainput.DataInputContainer; |
33 |
import org.gvsig.raster.buffer.BufferInterpolation; |
|
33 | 34 |
|
34 | 35 |
import com.iver.andami.PluginServices; |
35 | 36 |
/** |
... | ... | |
351 | 352 |
cInterpolation.addItem(PluginServices.getText(this, "vecino_+_proximo")); |
352 | 353 |
cInterpolation.addItem(PluginServices.getText(this, "bilinear")); |
353 | 354 |
cInterpolation.addItem(PluginServices.getText(this, "distancia_inversa")); |
354 |
cInterpolation.addItem(PluginServices.getText(this, "bicubico")); |
|
355 | 355 |
cInterpolation.addItem(PluginServices.getText(this, "b_splines")); |
356 |
//cInterpolation.addItem(PluginServices.getText(this, "bicubico")); |
|
356 | 357 |
|
357 | 358 |
} |
358 | 359 |
return cInterpolation; |
359 | 360 |
} |
360 | 361 |
|
361 | 362 |
/** |
363 |
* Obtiene el valor correspondiente al m?todo de interpolaci?n seleccionado en |
|
364 |
* el JComboBox |
|
365 |
* @return M?todo de interpolaci?n interpretable con las variables definidas en BufferInterpolation. |
|
366 |
*/ |
|
367 |
public int getSelectedInterpolationMethod() { |
|
368 |
switch(getJComboBox().getSelectedIndex()) { |
|
369 |
case 0: return BufferInterpolation.INTERPOLATION_NearestNeighbour; |
|
370 |
case 1: return BufferInterpolation.INTERPOLATION_Bilinear; |
|
371 |
case 2: return BufferInterpolation.INTERPOLATION_InverseDistance; |
|
372 |
case 3: return BufferInterpolation.INTERPOLATION_BSpline; |
|
373 |
} |
|
374 |
return BufferInterpolation.INTERPOLATION_Undefined; |
|
375 |
} |
|
376 |
|
|
377 |
/** |
|
362 | 378 |
* Asigna el valor del campo "tama?o de celda" a partir del double que lo representa |
363 | 379 |
* y con el n?mero de decimales que se especifica en el par?metro dec |
364 | 380 |
* @param cellSize Tama?o de celda en double |
Also available in: Unified diff