java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
com.vuze.plugins.mlab.tools.ndt.swingemu.JProgressBar

public class JProgressBarextends Component
Emulation of javax.swing.JProgressBar for the NDT (Network Diagnostic Tool) plugin.

This class provides a minimal stub implementation of a progress bar component to allow the NDT tool to run in headless environments. The progress bar maintains value and indeterminate state but provides no actual visual representation.

All operations except state tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.

  • Field Details

    • indeterminate

      private boolean indeterminate
      True while the bar animates without a known value.
  • Constructor Details

    • JProgressBar

      public JProgressBar()
      Constructor. The bar starts with determinate state and no visual representation, which is all a headless caller needs.
  • Method Details

    • setString

      public void setString(String str)
      Set the progress bar string.
      Parameters:
      str - the string to display
    • setValue

      public void setValue(int i)
      Set the progress bar value.
      Parameters:
      i - the value
    • setMinimum

      public void setMinimum(int i)
      Set the minimum value.
      Parameters:
      i - the minimum value
    • setMaximum

      public void setMaximum(int i)
      Set the maximum value.
      Parameters:
      i - the maximum value
    • setStringPainted

      public void setStringPainted(boolean b)
      Set whether the progress bar string should be painted.
      Parameters:
      b - true if the string should be painted
    • setIndeterminate

      public void setIndeterminate(boolean b)
      Set the indeterminate state.
      Parameters:
      b - true if indeterminate
    • isIndeterminate

      public boolean isIndeterminate()
      Check if the progress bar is indeterminate.
      Returns:
      true if indeterminate