Class JTaskProgress

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JTaskProgress extends JPanel
A panel dedicated to task progress monitoring.
Since:
1.0.8
Version:
"1.0.14" - b202111241200L
Author:
Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
See Also:
  • Constructor Details

    • JTaskProgress

      public JTaskProgress(JProgressBar progressBar, JLabel label)
      Create a new task progress monitor.
      Parameters:
      progressBar - the progress bar to use.
      label - the label of the monitor.
    • JTaskProgress

      public JTaskProgress()
      Create a new default task progress.
    • JTaskProgress

      public JTaskProgress(boolean labelVisible, boolean progressBarVisible)
      Create a new progress monitor.
      Parameters:
      labelVisible - is the label is visible.
      progressBarVisible - is the progress bar is visible.
  • Method Details

    • isLabelVisible

      public boolean isLabelVisible()
      Get if the label is visible.
      Returns:
      true if the label is visible and false otherwise.
      See Also:
    • setLabelVisible

      public void setLabelVisible(boolean labelVisible)
      Set if the label is visible.
      Parameters:
      labelVisible - true if the label is visible and false otherwise.
      See Also:
    • isProgressBarVisible

      public boolean isProgressBarVisible()
      Get if the progress bar is visible.
      Returns:
      true if the progress bar is visible and false otherwise.
      See Also:
    • setProgressBarVisible

      public void setProgressBarVisible(boolean progressBarVisible)
      Set if the progress bar is visible.
      Parameters:
      progressBarVisible - true if the progress bar is visible and false otherwise.
      See Also:
    • getProgressBar

      public JProgressBar getProgressBar()
      Get the progress bar attached to this monitor.
      Returns:
      the progress bar attached to this monitor.
    • getLabel

      public JLabel getLabel()
      Get the label of this monitor.
      Returns:
      the label of this monitor.
    • initGUI

      protected void initGUI()
      Initialize the Graphical User Interface (GUI) components.