From: Andrea A. <aa...@li...> - 2003-02-28 10:28:05
|
Martin Desruisseaux wrote: > Andrea Aime wrote: ... > Shall I propose the addition of an interface similar to > javax.imageio.event.IIOReadWarningListener? It contains only one method: > warningOccurred(Reader r, String warning), which is invoked when a > warning occurs but doesn't stop the reading. This is up to the user to > take whatever action he feels when such warning occurs. Better not introduce a dependendy on JAI on vector data sources, some user may want to build a vector only application and a dependency on a extension that's still in beta is not a good idea IHMO. Or are there some basic modules of Geotools with a direct dependence on it? > An other possibility is to use the following interface, which is already > defined in Geotools 2: > > org.geotools.util.ProgressListener > > http://modules.geotools.org/resources/apidocs/org/geotools/util/ProgressListener.html > > > It can monitor the loading progress, and has a "warningOccured" method. > Differents implementation of ProgressListener are available: > ProgressWindow display a progress bar and warnings (if any) in a window. > ProgressPrinter print the progress on the standard output stream. > ProgressMailer take you informed by email if the process is really long... > Yep, I like it better :-) Best regards Andrea Aime |