Examples of RenderingHints


Examples of java.awt.RenderingHints

    /**
     * Clears the <code>RenderingHints</code> associated with this
     * <code>RemoteJAI</code> instance.
     */
    public void clearRenderingHints() {
        this.renderingHints = new RenderingHints(null);
    }
View Full Code Here

Examples of java.awt.RenderingHints

        if (!odesc.validateArguments("rendered", args, msg)) {
            throw new IllegalArgumentException(msg.toString());
        }

  // Merge rendering hints.  Hints passed in take precedence.
        RenderingHints mergedHints;
        if (hints == null) {
            mergedHints = renderingHints;
        } else if (renderingHints.isEmpty()) {
            mergedHints = hints;
        } else {
            mergedHints = new RenderingHints((Map)renderingHints);
            mergedHints.add(hints);
        }

  RemoteRenderedOp op = new RemoteRenderedOp(operationRegistry,
               protocolName,
               serverName,
View Full Code Here

Examples of java.awt.RenderingHints

        if (instance == null) {
            throw new ImagingException(JaiI18N.getString("RemoteRenderedOp2"));
        }

  // Save the state of the node.
  RenderingHints rh = nodeSupport.getRenderingHints();
        oldHints = rh == null ? null : (RenderingHints)rh.clone();

  // Ensure that the rendering is a PlanarImage.
        return PlanarImage.wrapRenderedImage(instance);
    }
View Full Code Here

Examples of java.awt.RenderingHints

     */
    public int getRetryInterval() {
  if (theImage != null) {
      return ((RemoteRenderedImage)theImage).getRetryInterval();
  } else {
      RenderingHints rh = nodeSupport.getRenderingHints();
      if (rh == null) {
    return RemoteJAI.DEFAULT_RETRY_INTERVAL;
      } else {
    Integer i = (Integer)rh.get(JAI.KEY_RETRY_INTERVAL);
    if (i == null)
        return RemoteJAI.DEFAULT_RETRY_INTERVAL;
    else
        return i.intValue();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.