properties.put("srsList", wmsInfo.getSRS().size() > 0 ? wmsInfo.getSRS() : "NO_SRSList"); properties.put("bboxForEachCRS", wmsInfo.isBBOXForEachCRS().toString()); properties.put("interpolation", wmsInfo.getInterpolation().name()); properties.put("kmlReflectorMode", wmsInfo.getMetadata().get("kmlReflectorMode") != null ? wmsInfo.getMetadata().get("kmlReflectorMode") : "NO_KMLREFLECTORMODE"); properties.put("kmlSuperoverlayMode", wmsInfo.getMetadata().get("kmlSuperoverlayMode") != null ? wmsInfo.getMetadata().get("kmlSuperoverlayMode") : "NO_KMLSUPEROVERLAY");
if (WMSInterpolation.Nearest.equals(wms.getInterpolation())) { hintsMap.put(JAI.KEY_INTERPOLATION, NN_INTERPOLATION); hintsMap.put( RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR); } else if (WMSInterpolation.Bilinear.equals(wms.getInterpolation())) { hintsMap.put(JAI.KEY_INTERPOLATION, BIL_INTERPOLATION); hintsMap.put( RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); } else if (WMSInterpolation.Bicubic.equals(wms.getInterpolation())) { hintsMap.put(JAI.KEY_INTERPOLATION, BIC_INTERPOLATION); hintsMap.put(
renderScaleMethodAccurate = StreamingRenderer.SCALE_ACCURATE.equals(mapContent.getRendererScaleMethod()); wmsIterpolationOrdinal = wms.getInterpolation().ordinal(); maxErrors = wms.getMaxRenderingErrors(); this.style = style;
new DropDownChoice( "interpolation", Arrays.asList(WMSInfo.WMSInterpolation.values()), new InterpolationRenderer()));
WMSInterpolation.valueOf((String) props.get("allowInterpolation"))); } catch (Exception e) {
form.add(new DropDownChoice("interpolation", Arrays.asList(WMSInfo.WMSInterpolation.values()), new InterpolationRenderer()));
public Object getDisplayValue(Object object) { return new StringResourceModel(((WMSInterpolation) object).name(), WMSAdminPage.this, null).getString(); }
public String getIdValue(Object object, int index) { return ((WMSInterpolation) object).name(); }
public String getIdValue(Object object, int index) { return ((WMSInterpolation) object).name(); } }
@Override public WMSInterpolation getInterpolation() { return WMSInterpolation.values()[options.getWmsInterpolationOrdinal()]; }
public Object getDisplayValue(Object object) { return new StringResourceModel( ((WMSInterpolation) object).name(), WMSAdminPage.this, null) .getString(); }