Examples of RenderableOp


Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   public synchronized Long getRendering(Long id, SerializableState rcs)
/*      */     throws RemoteException
/*      */   {
/*  857 */     RenderableOp op = (RenderableOp)nodes.get(id);
/*  858 */     PlanarImage pi = PlanarImage.wrapRenderedImage(op.createRendering((RenderContext)rcs.getObject()));
/*      */
/*  861 */     Long renderingID = getRemoteID();
/*  862 */     nodes.put(renderingID, pi);
/*      */
/*  865 */     setServerNegotiatedValues(renderingID, (NegotiableCapabilitySet)negotiated.get(id));
View Full Code Here

Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   public synchronized void setRenderableSource(Long id, Long sourceId, int index)
/*      */     throws RemoteException
/*      */   {
/*  879 */     RenderableOp node = (RenderableOp)nodes.get(id);
/*  880 */     Object obj = nodes.get(sourceId);
/*  881 */     if ((obj instanceof RenderableOp))
/*  882 */       node.setSource((RenderableOp)obj, index);
/*  883 */     else if ((obj instanceof RenderedImage))
/*  884 */       node.setSource(PlanarImage.wrapRenderedImage((RenderedImage)obj), index);
/*      */   }
View Full Code Here

Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   public synchronized void setRenderableSource(Long id, Long sourceId, String serverName, String opName, int index)
/*      */     throws RemoteException
/*      */   {
/*  900 */     RenderableOp node = (RenderableOp)nodes.get(id);
/*  901 */     node.setSource(new RMIServerProxy(serverName + "::" + sourceId, opName, null), index);
/*      */   }
View Full Code Here

Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   public synchronized void setRenderableRMIServerProxyAsSource(Long id, Long sourceId, String serverName, String opName, int index)
/*      */     throws RemoteException
/*      */   {
/*  920 */     RenderableOp node = (RenderableOp)nodes.get(id);
/*  921 */     node.setSource(new RenderableRMIServerProxy(serverName, opName, null, sourceId), index);
/*      */   }
View Full Code Here

Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   public synchronized void setRenderableSource(Long id, RenderableOp source, int index)
/*      */     throws RemoteException
/*      */   {
/*  935 */     RenderableOp op = (RenderableOp)nodes.get(id);
/*  936 */     op.setSource(source, index);
/*      */   }
View Full Code Here

Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   public synchronized void setRenderableSource(Long id, SerializableRenderableImage s, int index)
/*      */     throws RemoteException
/*      */   {
/*  946 */     RenderableOp op = (RenderableOp)nodes.get(id);
/*  947 */     op.setSource(s, index);
/*      */   }
View Full Code Here

Examples of javax.media.jai.RenderableOp

/*      */
/*      */   public synchronized void setRenderableSource(Long id, RenderedImage source, int index)
/*      */     throws RemoteException
/*      */   {
/*  958 */     PlanarImage pi = PlanarImage.wrapRenderedImage(source);
/*  959 */     RenderableOp op = (RenderableOp)nodes.get(id);
/*  960 */     op.setSource(pi, index);
/*      */   }
View Full Code Here

Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   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

Examples of javax.media.jai.RenderableOp

/*      */   }
/*      */
/*      */   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

Examples of javax.media.jai.RenderableOp

/* 60 */         RenderedOp op = (RenderedOp)opNode;
/* 61 */         ParameterBlock pb = op.getParameterBlock();
/* 62 */         ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
/* 63 */         return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
/* 64 */       }if ((opNode instanceof RenderableOp)) {
/* 65 */         RenderableOp op = (RenderableOp)opNode;
/* 66 */         ParameterBlock pb = op.getParameterBlock();
/* 67 */         ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
/* 68 */         return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
/*    */       }
/*    */     }
/*    */
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.