Package com.lightcrafts.mediax.jai.util

Examples of com.lightcrafts.mediax.jai.util.ImagingListener


      return negotiated.getNegotiatedValue(category);
  return null;
    }

    void sendExceptionToListener(String message, Exception e) {
        ImagingListener listener =
            (ImagingListener)getRenderingHints().get(JAI.KEY_IMAGING_LISTENER);

        listener.errorOccurred(message, e, this, false);
    }
View Full Code Here


  return descriptors;
    }

    void sendExceptionToListener(String message, Exception e) {
        ImagingListener listener = JAI.getDefaultInstance().getImagingListener();
        listener.errorOccurred(message, e, this, false);
    }
View Full Code Here

      clientCapabilities = rrif.getClientCapabilities();
  }
    }

    void sendExceptionToListener(Exception e) {
        ImagingListener listener = null;
        if (hints != null)
            listener = (ImagingListener)hints.get(JAI.KEY_IMAGING_LISTENER);
        else
            listener = JAI.getDefaultInstance().getImagingListener();
        String message = JaiI18N.getString("PlanarImageServerProxy2");
        listener.errorOccurred(message,
                               new RemoteImagingException(message, e),
                               this, false);
    }
View Full Code Here

                  negotiatedValues);
  }
    }

    void sendExceptionToListener(String message, Exception e) {
        ImagingListener listener =
            (ImagingListener)getRenderingHints().get(JAI.KEY_IMAGING_LISTENER);

        listener.errorOccurred(message, e, this, false);
    }
View Full Code Here

  return null;
    }

    void sendExceptionToListener(String message, Exception e) {
        ImagingListener listener= JAI.getDefaultInstance().getImagingListener();
        listener.errorOccurred(message, e, this, false);
    }
View Full Code Here

     * If none is set (which should not happen) the message is simply
     * printed to <code>System.err</code>.
     */
    private static void forwardToListener(String message,
                                          Throwable thrown) {
        ImagingListener listener =
            JAI.getDefaultInstance().getImagingListener();

        if(listener != null) {
            listener.errorOccurred(message, thrown, MediaLibAccessor.class,
                                   false);
        } else {
            System.err.println(message);
        }
    }
View Full Code Here

    public ImagingListener getImagingListener() {
        return imagingListener;
    }

    private void sendExceptionToListener(String message, Exception e) {
        ImagingListener listener = getImagingListener();
        listener.errorOccurred(message, e, this, false);
    }
View Full Code Here

                TileCodecParameterList.class};

      factoryMethod = factoryClass.getMethod("createDecoder", paramTypes);

  } catch (NoSuchMethodException e) {
            ImagingListener listener =
                JAI.getDefaultInstance().getImagingListener();
            String message = JaiI18N.getString("RegistryMode0") + " " +
                             factoryClass.getName() + ".";
            listener.errorOccurred(message, e,
                                   TileDecoderRegistryMode.class, false);
//      e.printStackTrace();
  }

  return factoryMethod;
View Full Code Here

         java.awt.image.renderable.ParameterBlock.class,
         java.awt.RenderingHints.class};

      factoryMethod = factoryClass.getMethod("create", paramTypes);
  } catch (NoSuchMethodException e) {
            ImagingListener listener =
                JAI.getDefaultInstance().getImagingListener();
            String message = JaiI18N.getString("RegistryMode0") + " " +
                             factoryClass.getName() + ".";
            listener.errorOccurred(message, e,
                                   RemoteRenderedRegistryMode.class, false);
//      e.printStackTrace();
  }

  return factoryMethod;
View Full Code Here

        {java.awt.image.renderable.ParameterBlock.class};

      factoryMethod = factoryClass.getMethod("create", paramTypes);

  } catch (NoSuchMethodException e) {
            ImagingListener listener =
                JAI.getDefaultInstance().getImagingListener();
            String message = JaiI18N.getString("RegistryMode0") + " " +
                             factoryClass.getName() + ".";
            listener.errorOccurred(message, e,
                                   RenderableCollectionRegistryMode.class, false);
//      e.printStackTrace();
  }

  return factoryMethod;
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.util.ImagingListener

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.