Class ViewJProgressBarMulti.AlgoContainer

java.lang.Object
gov.nih.mipav.view.ViewJProgressBarMulti.AlgoContainer
Enclosing class:
ViewJProgressBarMulti

private class ViewJProgressBarMulti.AlgoContainer extends Object
A container class that holds all the information to correctly draw each progress bar. It also holds several methods that help in modifying the frame correctly.
Author:
wangvg
  • Field Details

    • title

      private String title
      Base title string inputted at instantiation
    • titleLabel

      private JLabel titleLabel
      Actual displayed label: also includes the message
    • pctLabel

      private JLabel pctLabel
      The percentage displayed next to the progress bar
    • hideLabel

      private JLabel hideLabel
      The associated label to hide/show the bar
    • closeLabel

      private JLabel closeLabel
      The associated label to close the bar
    • pBar

      private JProgressBar pBar
      The progress bar
  • Constructor Details

    • AlgoContainer

      private AlgoContainer(String _title, int min, int max)
  • Method Details

    • addToPane

      private void addToPane()
      Adds what the container just built (based on the given inputs) to the component barPanel.
    • removeFromPane

      private void removeFromPane()
      Removes the components from this given container from the frame
    • hide

      private void hide()
      Hide only the progress bar and the percentage text
    • show

      private void show()
      Display the hidden progress bar and text
    • updateMessage

      private void updateMessage(String msg)
    • updateValue

      private void updateValue(int value)
      Updates this containers components based on the input value
      Parameters:
      value - the new progress value