/** * Sets the values of an arbitrary number of preferences for the * rendering algorithms. * Only values for the rendering hints that are present in the * specified <code>Map</code> object are modified. * All other preferences not present in the specified * object are left unmodified. * Hint categories include controls for rendering quality and * overall time/quality trade-off in the rendering process. * Refer to the <code>RenderingHints</code> class for definitions of * some common keys and values. * @param hints the rendering hints to be set * @see RenderingHints */ public void addRenderingHints(Map<?,?> hints){ this._hints.putAll(hints); }
/** * Replaces the values of all preferences for the rendering * algorithms with the specified <code>hints</code>. * The existing values for all rendering hints are discarded and * the new set of known hints and values are initialized from the * specified {@link Map} object. * Hint categories include controls for rendering quality and * overall time/quality trade-off in the rendering process. * Refer to the <code>RenderingHints</code> class for definitions of * some common keys and values. * @param hints the rendering hints to be set * @see RenderingHints */ public void setRenderingHints(Map<?,?> hints){ this._hints = new RenderingHints(null); this._hints.putAll(hints); }
hints.putAll(GeoTools.getDefaultHints()); return new OpImage(new Vector(sourceImages), il, hints, false) {
hints.putAll(commonHints);
@Override public void addRenderingHints(Map<?, ?> hints) { renderingHints.putAll(hints); }
/** * Adds all the supplied rendering hints. * * @param hints the hints ({@code null} not permitted). */ @Override public void addRenderingHints(Map<?, ?> hints) { this.hints.putAll(hints); }
/** * @see Graphics2D#addRenderingHints(Map) */ public void addRenderingHints(Map hints) { rhints.putAll(hints); }
/** * Adds to table of rendering hints. * * @param hints table to be added */ public void addRenderingHints(Map<?, ?> hints) { this.hints.putAll(hints); }
/** * @see Graphics2D#addRenderingHints(Map) */ public void addRenderingHints(Map hints) { rhints.putAll(hints); }
/** * @see Graphics2D#addRenderingHints(Map) */ @Override public void addRenderingHints( final Map hints ) { rhints.putAll( hints ); }
/** * Adds all the supplied rendering hints. * * @param hints the hints ({@code null} not permitted). */ @Override public void addRenderingHints(Map<?, ?> hints) { this.hints.putAll(hints); }
@Override public void setRenderingHints(Map<?, ?> hints) { renderingHints = new RenderingHints(null); renderingHints.putAll(hints); }
/** Replace all current rendering hints with the argument. */ public void setRenderingHints(RenderingHints hints) { renderingHints = new RenderingHints(new HashMap<RenderingHints.Key, Object>()); renderingHints.putAll(hints); }
/** * Sets the rendering hints to the specified collection. * * @param hints the new set of hints ({@code null} not permitted). * * @see #getRenderingHints() */ @Override public void setRenderingHints(Map<?, ?> hints) { this.hints.clear(); this.hints.putAll(hints); }
@Override public void addRenderingHints(Map<?, ?> hints) { // for getRenderingHint() and getRenderingHints() this.renderingHints.putAll(hints); if (isPaintingEnabled) { notSupportedWarn(); } }
/** * @see Graphics2D#addRenderingHints(Map) */ @Override public void addRenderingHints(Map<?,?> hints) { rhints.putAll(hints); if (dg2 != null) { dg2.addRenderingHints(hints); } }
/** * @see Graphics2D#setRenderingHints(Map) */ public void setRenderingHints(Map hints) { rhints.clear(); rhints.putAll(hints); }
private RenderedImage mosaicHeterogeneousImages(List<ImageInTile> sources) { // at the time of writing, only JAI-EXT mosaic can handle a mix of different // color models, we need to use it explicitly RenderedImage image; final ParameterBlockJAI pb = new ParameterBlockJAI(new it.geosolutions.jaiext.mosaic.MosaicDescriptor()); for (ImageInTile it : sources) { if (it.posx != 0 || it.posy != 0) { ImageWorker iw = new ImageWorker(it.image); iw.translate( it.posx, it.posy, Interpolation.getInstance(Interpolation.INTERP_NEAREST)); RenderedImage translated = iw.getRenderedImage(); pb.addSource(translated); } else { pb.addSource(it.image); } } pb.setParameter("mosaicType", MosaicDescriptor.MOSAIC_TYPE_OVERLAY); pb.setParameter("sourceAlpha", null); pb.setParameter("sourceROI", null); pb.setParameter("sourceThreshold", null); pb.setParameter("backgroundValues", new double[] {0}); pb.setParameter("nodata", null); RenderingHints hints = new Hints(JAI.getDefaultInstance().getRenderingHints()); hints.putAll(GeoTools.getDefaultHints()); image = new MosaicRIF().create(pb, hints); return image; }
@Override public void setRenderingHints(Map<?, ?> hints) { // for getRenderingHint() and getRenderingHints() this.renderingHints.clear(); // Needs to clear first this.renderingHints.putAll(hints); // Only overrides existing keys if (isPaintingEnabled) { notSupportedWarn(); } }
/** * @see Graphics2D#setRenderingHints(Map) */ @Override public void setRenderingHints(Map<?,?> hints) { rhints.clear(); rhints.putAll(hints); if (dg2 != null) { dg2.setRenderingHints(hints); } }