Package javax.media.jai

Examples of javax.media.jai.RenderableOp


  // XXX Since RMIServerProxy does not do a checkClientParameters, this
  // side obviously does not do the corresponding
  // checkServerParameters. Look at RMIServerProxy's renderable
  // constructor for reasoning. aastha, 09/26/01

  RenderableOp node = new RenderableOp(opName, pb);
  nodes.put(id, node);
    }
View Full Code Here


     * Calls for rendering of a RenderableOp with the given SerializableState
     */
    public synchronized Long getRendering(Long id, SerializableState rcs)
  throws RemoteException {

  RenderableOp op = (RenderableOp)nodes.get(id);
  PlanarImage pi = PlanarImage.wrapRenderedImage(op.createRendering(
               (RenderContext)rcs.getObject()));

  Long renderingID = getRemoteID();
  nodes.put(renderingID, pi);

View Full Code Here

    public synchronized void setRenderableSource(Long id,
             Long sourceId,
             int index)
  throws RemoteException {

  RenderableOp node = (RenderableOp)nodes.get(id);
  Object obj = nodes.get(sourceId);
  if (obj instanceof RenderableOp){
      node.setSource((RenderableOp)obj, index);
  } else if (obj instanceof RenderedImage) {
      node.setSource(PlanarImage.wrapRenderedImage((RenderedImage)obj),
         index);
  }
    }
View Full Code Here

                RenderedOp op = (RenderedOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
                return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
            } else if(opNode instanceof RenderableOp) {
                RenderableOp op = (RenderableOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
                return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
            }
        }
View Full Code Here

                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(DFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            } else if(opNode instanceof RenderableOp) {
                RenderableOp op = (RenderableOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(DFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            }
View Full Code Here

                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(IDFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            } else if(opNode instanceof RenderableOp) {
                RenderableOp op = (RenderableOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(IDFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            }
View Full Code Here

/*      */   }
/*      */
/*      */   public synchronized void createRenderableOp(Long id, String opName, ParameterBlock pb)
/*      */     throws RemoteException
/*      */   {
/*  847 */     RenderableOp node = new RenderableOp(opName, pb);
/*  848 */     nodes.put(id, node);
/*      */   }
View Full Code Here

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

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

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

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.