Class ProgressMonitorFactory


  • public class ProgressMonitorFactory
    extends java.lang.Object
    A factory for creating ProgressMonitor instances where we don't care which listeners we get. Each monitor will share the same ProgressMonitorListeners - as discovered by ServiceLoader discovery.
    • Constructor Detail

      • ProgressMonitorFactory

        public ProgressMonitorFactory()
    • Method Detail

      • clearListeners

        public static void clearListeners()
      • resetListeners

        public static void resetListeners()
      • newMonitor

        public static final io.github.duckasteroid.progress.ProgressMonitor newMonitor​(java.lang.String name,
                                                                                       long size)
        Create a new progress monitor using system wide settings.
        Parameters:
        name - the name of the monitor
        size - the amount of work in the new monitor
        Returns:
        the new monitor (never null)