Changeset 19949 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
- Timestamp:
- 2010-02-09T19:42:26+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r19894 r19949 35 35 36 36 private JCheckBox drawBoundaries = new JCheckBox(tr("Draw boundaries of downloaded data.")); 37 38 private JComboBox imageInterpolationMethod = new JComboBox(); 37 39 38 40 private JCheckBox disableImageCropping = new JCheckBox(tr("Disable image cropping during georeferencing.")); … … 121 123 drawBoundaries.setToolTipText(tr("Draw a rectangle around downloaded data from WMS server.")); 122 124 cadastrewms.add(drawBoundaries, GBC.eop().insets(0, 0, 0, 5)); 125 126 // option to select image zooming interpolation method 127 JLabel jLabelImageZoomInterpolation = new JLabel(tr("Image zoom interpolation:")); 128 cadastrewms.add(jLabelImageZoomInterpolation, GBC.std().insets(0, 0, 10, 0)); 129 imageInterpolationMethod.addItem(tr("Nearest-Neighbor (fastest) [ Default ]")); 130 imageInterpolationMethod.addItem(tr("Bilinear (fast)")); 131 imageInterpolationMethod.addItem(tr("Bicubic (slow)")); 132 String savedImageInterpolationMethod = Main.pref.get("cadastrewms.imageInterpolation", "standard"); 133 if (savedImageInterpolationMethod.equals("bilinear")) 134 imageInterpolationMethod.setSelectedIndex(1); 135 else if (savedImageInterpolationMethod.equals("bicubic")) 136 imageInterpolationMethod.setSelectedIndex(2); 137 else 138 imageInterpolationMethod.setSelectedIndex(0); 139 cadastrewms.add(imageInterpolationMethod, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 200, 5)); 123 140 124 141 // separator … … 242 259 Main.pref.put("cadastrewms.brightness", Float.toString((float)sliderTrans.getValue()/10)); 243 260 Main.pref.put("cadastrewms.drawBoundaries", drawBoundaries.isSelected()); 261 if (imageInterpolationMethod.getSelectedIndex() == 2) 262 Main.pref.put("cadastrewms.imageInterpolation", "bicubic"); 263 else if (imageInterpolationMethod.getSelectedIndex() == 1) 264 Main.pref.put("cadastrewms.imageInterpolation", "bilinear"); 265 else 266 Main.pref.put("cadastrewms.imageInterpolation", "standard"); 244 267 if (grabMultiplier1.isSelected()) 245 268 Main.pref.put("cadastrewms.scale", Scale.X1.toString());
Note:
See TracChangeset
for help on using the changeset viewer.
