Package javax.media.jai

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


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

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

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

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

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

/* 65 */         DFTDataNature dataNature = (DFTDataNature)pb.getObjectParameter(1);
/*    */
/* 67 */         return dataNature.equals(IDFTDescriptor.COMPLEX_TO_REAL) ? Boolean.FALSE : Boolean.TRUE;
/*    */       }
/* 69 */       if ((opNode instanceof RenderableOp)) {
/* 70 */         RenderableOp op = (RenderableOp)opNode;
/* 71 */         ParameterBlock pb = op.getParameterBlock();
/* 72 */         DFTDataNature dataNature = (DFTDataNature)pb.getObjectParameter(1);
/*    */
/* 74 */         return dataNature.equals(IDFTDescriptor.COMPLEX_TO_REAL) ? Boolean.FALSE : Boolean.TRUE;
/*    */       }
/*    */
View Full Code Here

/* 65 */         DFTDataNature dataNature = (DFTDataNature)pb.getObjectParameter(1);
/*    */
/* 67 */         return dataNature.equals(DFTDescriptor.COMPLEX_TO_REAL) ? Boolean.FALSE : Boolean.TRUE;
/*    */       }
/* 69 */       if ((opNode instanceof RenderableOp)) {
/* 70 */         RenderableOp op = (RenderableOp)opNode;
/* 71 */         ParameterBlock pb = op.getParameterBlock();
/* 72 */         DFTDataNature dataNature = (DFTDataNature)pb.getObjectParameter(1);
/*    */
/* 74 */         return dataNature.equals(DFTDescriptor.COMPLEX_TO_REAL) ? Boolean.FALSE : Boolean.TRUE;
/*    */       }
/*    */
View Full Code Here

TOP

Related Classes of javax.media.jai.RenderableOp

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.