Package java.awt

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


  if (theImage != null) {
      ((RemoteRenderedImage)theImage).setRetryInterval(retryInterval);
  }

  RenderingHints rh = nodeSupport.getRenderingHints();
  if (rh == null) {
      nodeSupport.setRenderingHints(new RenderingHints(null));
      rh = nodeSupport.getRenderingHints();
  }

  rh.put(JAI.KEY_RETRY_INTERVAL, new Integer(retryInterval));
    }
View Full Code Here

     */
    public int getNumRetries() {
  if (theImage != null) {
      return ((RemoteRenderedImage)theImage).getNumRetries();
  } else {
      RenderingHints rh = nodeSupport.getRenderingHints();
      if (rh == null) {
    return RemoteJAI.DEFAULT_NUM_RETRIES;
      } else {
    Integer i = (Integer)rh.get(JAI.KEY_NUM_RETRIES);
    if (i == null)
        return RemoteJAI.DEFAULT_NUM_RETRIES;
    else
        return i.intValue();
      }
View Full Code Here

  if (theImage != null) {
      ((RemoteRenderedImage)theImage).setNumRetries(numRetries);
  }

  RenderingHints rh = nodeSupport.getRenderingHints();
  if (rh == null) {
      nodeSupport.setRenderingHints(new RenderingHints(null));
      rh = nodeSupport.getRenderingHints();
  }

  rh.put(JAI.KEY_NUM_RETRIES, new Integer(numRetries));
    }
View Full Code Here

  if (theImage != null) {
      ((RemoteRenderedImage)theImage).setNegotiationPreferences(
                 preferences);
  }

  RenderingHints rh = nodeSupport.getRenderingHints();

  if (preferences != null) {
      if (rh == null) {
    nodeSupport.setRenderingHints(new RenderingHints(null));
    rh = nodeSupport.getRenderingHints();
      }

      rh.put(JAI.KEY_NEGOTIATION_PREFERENCES, preferences);
  } else {
      // Remove any previous values set for negotiation preferences
      if (rh != null) {
    rh.remove(JAI.KEY_NEGOTIATION_PREFERENCES);
      }
  }

  negotiated = negotiate(preferences);
    }
View Full Code Here

     * Returns the current negotiation preferences or null, if none were
     * set previously.
     */
    public NegotiableCapabilitySet getNegotiationPreferences() {

  RenderingHints rh = nodeSupport.getRenderingHints();
  return rh == null ? null : (NegotiableCapabilitySet)rh.get(
               JAI.KEY_NEGOTIATION_PREFERENCES);
    }
View Full Code Here

  // If there are any hints set on the node, create a new
  // RenderContext which merges them with those in the RenderContext
  // passed in with the passed in hints taking precedence.
  RenderContext rcIn = renderContext;
  RenderingHints nodeHints = nodeSupport.getRenderingHints();
  if(nodeHints != null) {
      RenderingHints hints = renderContext.getRenderingHints();
      RenderingHints mergedHints;
      if (hints == null) {
    mergedHints = nodeHints;
      } else if (nodeHints == null || nodeHints.isEmpty()) {
    mergedHints = hints;
      } else {
    mergedHints = new RenderingHints((Map)nodeHints);
                mergedHints.add(hints);
      }

      if(mergedHints != hints) {
    rcIn = new RenderContext(renderContext.getTransform(),
           renderContext.getAreaOfInterest(),
View Full Code Here

     * the default retry interval as defined by
     * <code>RemoteJAI.DEFAULT_RETRY_INTERVAL</code> is returned.
     */
    public int getRetryInterval() {

  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

    public void setRetryInterval(int retryInterval) {

  if (retryInterval < 0)
      throw new IllegalArgumentException(JaiI18N.getString("Generic3"));

  RenderingHints rh = nodeSupport.getRenderingHints();
  if (rh == null) {
      RenderingHints hints = new RenderingHints(null);
      nodeSupport.setRenderingHints(hints);
  }

  nodeSupport.getRenderingHints().put(JAI.KEY_RETRY_INTERVAL,
              new Integer(retryInterval));
View Full Code Here

     * value is returned, else the default number of retries as defined by
     * <code>RemoteJAI.DEFAULT_NUM_RETRIES</code> is returned.
     */
    public int getNumRetries() {

  RenderingHints rh = nodeSupport.getRenderingHints();
  if (rh == null) {
      return RemoteJAI.DEFAULT_NUM_RETRIES;
  } else {
      Integer i = (Integer)rh.get(JAI.KEY_NUM_RETRIES);
      if (i == null)
    return RemoteJAI.DEFAULT_NUM_RETRIES;
      else
    return i.intValue();
  }
View Full Code Here

TOP

Related Classes of java.awt.RenderingHints

Copyright © 2018 www.massapicom. 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.