Class ViewJProgressBarMulti.AlgoContainer

  • Enclosing class:
    ViewJProgressBarMulti

    private class ViewJProgressBarMulti.AlgoContainer
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JLabel closeLabel
      The associated label to close the bar
      private javax.swing.JLabel hideLabel
      The associated label to hide/show the bar
      private ViewJProgressBarMulti.Linking link
      Linking information for sub-algorithms
      private javax.swing.JProgressBar pBar
      The progress bar
      private javax.swing.JLabel pctLabel
      The percentage displayed next to the progress bar
      private java.lang.String title
      Base title string inputted at instantiation
      private javax.swing.JLabel titleLabel
      Actual displayed label: also includes the message
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AlgoContainer​(java.lang.String _title, int min, int max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addToPane()
      Adds what the container just built (based on the given inputs) to the component barPanel.
      private void hide()
      Hide only the progress bar and the percentage text
      private void removeFromPane()
      Removes the components from this given container from the frame
      private void show()
      Display the hidden progress bar and text
      private void updateMessage​(java.lang.String msg)  
      private void updateValue​(int value)
      Updates this containers components based on the input value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • title

        private java.lang.String title
        Base title string inputted at instantiation
      • titleLabel

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

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

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

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

        private javax.swing.JProgressBar pBar
        The progress bar
    • Constructor Detail

      • AlgoContainer

        private AlgoContainer​(java.lang.String _title,
                              int min,
                              int max)
    • Method Detail

      • 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​(java.lang.String msg)
      • updateValue

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