Package java.awt.image.renderable

Examples of java.awt.image.renderable.ContextualRenderedImageFactory


  // Retrieve the RenderableOp for whose RIF
  // the mapRenderContext call is being made.
  RenderableOp rop = (RenderableOp)nodes.get(nodeId);

  //Find the CRIF for the respective operation
  ContextualRenderedImageFactory crif =
      CRIFRegistry.get(rop.getRegistry(), operationName);

  if (crif == null) {
      throw new RuntimeException(
            JaiI18N.getString("JAIRMIImageServer3"));
  }

  Rectangle2D r2D =
      crif.getBounds2D((ParameterBlock)rop.getParameterBlock());

  return SerializerFactory.getState(r2D, null);
    }
View Full Code Here


  // Retrieve the RenderableOp for the rendering of which
  // the mapRenderContext call is being made.
  RenderableOp rop = (RenderableOp)nodes.get(nodeId);

  //Find the CRIF for the respective operation
  ContextualRenderedImageFactory crif =
      CRIFRegistry.get(rop.getRegistry(), operationName);

  if (crif == null) {
      throw new RuntimeException(
            JaiI18N.getString("JAIRMIImageServer3"));
  }

  RenderContext rc =
      crif.mapRenderContext(id,
          (RenderContext)rcs.getObject(),
          (ParameterBlock)rop.getParameterBlock(),
          rop);
  return SerializerFactory.getState(rc, null);
    }
View Full Code Here

  // Retrieve the RenderableOp for whose RIF
  // the mapRenderContext call is being made.
  RenderableOp rop = (RenderableOp)nodes.get(nodeId);

  //Find the CRIF for the respective operation
  ContextualRenderedImageFactory crif =
      CRIFRegistry.get(rop.getRegistry(), operationName);

  if (crif == null) {
      throw new RuntimeException(
            JaiI18N.getString("JAIRMIImageServer3"));
  }

  Rectangle2D r2D =
      crif.getBounds2D((ParameterBlock)rop.getParameterBlock());

  return SerializerFactory.getState(r2D, null);
    }
View Full Code Here

/*      */   public SerializableState mapRenderContext(int id, Long nodeId, String operationName, SerializableState rcs)
/*      */     throws RemoteException
/*      */   {
/*  973 */     RenderableOp rop = (RenderableOp)nodes.get(nodeId);
/*      */
/*  976 */     ContextualRenderedImageFactory crif = CRIFRegistry.get(rop.getRegistry(), operationName);
/*      */
/*  979 */     if (crif == null) {
/*  980 */       throw new RuntimeException(JaiI18N.getString("JAIRMIImageServer3"));
/*      */     }
/*      */
/*  984 */     RenderContext rc = crif.mapRenderContext(id, (RenderContext)rcs.getObject(), rop.getParameterBlock(), rop);
/*      */
/*  989 */     return SerializerFactory.getState(rc, null);
/*      */   }
View Full Code Here

/*      */   public SerializableState getBounds2D(Long nodeId, String operationName)
/*      */     throws RemoteException
/*      */   {
/* 1000 */     RenderableOp rop = (RenderableOp)nodes.get(nodeId);
/*      */
/* 1003 */     ContextualRenderedImageFactory crif = CRIFRegistry.get(rop.getRegistry(), operationName);
/*      */
/* 1006 */     if (crif == null) {
/* 1007 */       throw new RuntimeException(JaiI18N.getString("JAIRMIImageServer3"));
/*      */     }
/*      */
/* 1011 */     Rectangle2D r2D = crif.getBounds2D(rop.getParameterBlock());
/*      */
/* 1014 */     return SerializerFactory.getState(r2D, null);
/*      */   }
View Full Code Here

TOP

Related Classes of java.awt.image.renderable.ContextualRenderedImageFactory

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.