Package java.awt.image.renderable

Examples of java.awt.image.renderable.RenderableImage


     * @return the minimum X coordinate of the rendering-independent image
     * data.
     */
    public float getRenderableMinX(Long id) throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getMinX();
    }
View Full Code Here


     *
     * @return the minimum X coordinate of the rendering-independent image
     * data.
     */
    public float getRenderableMinY(Long id) throws RemoteException {
  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getMinY();
    }
View Full Code Here

     * <code>RenderableImage</code> stored against the given ID.
     *
     * @return the width of the renderable image in user coordinates.
     */
    public float getRenderableWidth(Long id) throws RemoteException {
  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getWidth();
    }
View Full Code Here

     * <code>RenderableImage</code> stored against the given ID.
     *
     * @return the height of the renderable image in user coordinates.
     */
    public float getRenderableHeight(Long id) throws RemoteException {
  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getHeight();
    }
View Full Code Here

                 int w,
                 int h,
                 SerializableState hintsState)
  throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  RenderingHints hints = (RenderingHints)hintsState.getObject();
  RenderedImage rendering = ri.createScaledRendering(w, h, hints);
  if (rendering instanceof Serializable) {
      return rendering;
  } else {
      return new SerializableRenderedImage(rendering);
  }
View Full Code Here

     * @return a RenderedImage containing the rendered data.
     */
    public RenderedImage createDefaultRendering(Long id)
  throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  RenderedImage rendering = ri.createDefaultRendering();
  if (rendering instanceof Serializable) {
      return rendering;
  } else {
      return new SerializableRenderedImage(rendering);
  }
View Full Code Here

     */
    public RenderedImage createRendering(Long id,
           SerializableState renderContextState)
  throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  RenderContext renderContext =
      (RenderContext)renderContextState.getObject();
  RenderedImage rendering = ri.createRendering(renderContext);
  if (rendering instanceof Serializable) {
      return rendering;
  } else {
      return new SerializableRenderedImage(rendering);
  }
View Full Code Here

     * arguments may produce different results for the node represented
     * by the given id.
     */
    public boolean isDynamic(Long id) throws RemoteException {

  RenderableImage node = (RenderableImage)nodes.get(id);
  return node.isDynamic();
    }
View Full Code Here

                       JaiI18N.getString("CropDescriptor5"));
            return false;
        }

        // Check for out-of-bounds
        RenderableImage src = (RenderableImage)args.getSource(0);

        Rectangle2D rect_src =
            new Rectangle2D.Float(src.getMinX(),
                                  src.getMinY(),
                                  src.getWidth(),
                                  src.getHeight());

        if (!rect_src.contains(rect_req)) {
            msg.append(getName() + " " +
                       JaiI18N.getString("CropDescriptor6"));
            return false;
View Full Code Here

        // If the source is a local RenderableImage, the only way
        // to access it from a remote machine is to wrap it in
        // a SerializableRenderableImage and then set the SRI as
        // the source on the remote operation.
        RenderableImage ri = (RenderableImage)source;
        try {
      SerializableRenderableImage sri =
          new SerializableRenderableImage(ri);
      remoteImage.setRenderableSource(opID, sri, i);
      newPB.setSource(sri, i);
View Full Code Here

TOP

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

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.