Changeset 31506 in osm
- Timestamp:
- 2015-08-17T21:55:09+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/actions/ShowLayerFiltersDialog.java
r31504 r31506 28 28 * 29 29 */ 30 public final class ShowLayerFiltersDialog extends AbstractAction implements LayerAction { 30 public final class ShowLayerFiltersDialog extends AbstractAction implements 31 LayerAction { 31 32 32 33 private List<FiltersDialog> dialogs = new ArrayList<FiltersDialog>(); … … 61 62 if (temp.getLayer().equals(layer)) { 62 63 try { 63 64 64 temp.createAndShowGUI(); 65 66 65 } catch (MalformedURLException e1) { 67 66 e1.printStackTrace(); 68 67 } 69 70 68 break; 71 69 } -
applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/gui/FilterPanel.java
r31504 r31506 248 248 int initValue = json.getInt("default"); 249 249 250 Main.debug("Slider is integer\n"); 251 Main.debug("minValue: " + String.valueOf(minValue) + 252 "maxValue: " + String.valueOf(maxValue)); 250 253 try { 251 254 slider = new JSlider(JSlider.HORIZONTAL, minValue, maxValue, … … 265 268 } else if (valueType.equals("float")) { 266 269 270 Main.debug("Slider is float\n"); 267 271 // every value is supplied by 10 to be integer for slider 268 272 double minValueDouble = array.getJsonNumber(0).doubleValue(); … … 295 299 slider.setName(json.getString("name")); 296 300 slider.setToolTipText(String.valueOf((double) slider.getValue() / 100)); 297 slider.setBackground(this.getBackground()); 298 slider.setBorder(sliderBorder); 299 slider.setPaintTicks(true); 300 slider.setPaintLabels(true); 301 this.add(slider); 301 302 302 303 303 } catch (IllegalArgumentException e) { … … 311 311 } 312 312 313 slider.setBackground(this.getBackground()); 314 slider.setBorder(sliderBorder); 315 slider.setPaintTicks(true); 316 slider.setPaintLabels(true); 317 this.add(slider); 318 313 319 return slider; 314 320 }
Note:
See TracChangeset
for help on using the changeset viewer.