Package gov.nih.mipav.view
Class ViewJProgressBarMulti.AlgoContainer
- java.lang.Object
- 
- gov.nih.mipav.view.ViewJProgressBarMulti.AlgoContainer
 
- 
- Enclosing class:
- ViewJProgressBarMulti
 
 private class ViewJProgressBarMulti.AlgoContainer extends java.lang.ObjectA 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 SummaryFields Modifier and Type Field Description private javax.swing.JLabelcloseLabelThe associated label to close the barprivate javax.swing.JLabelhideLabelThe associated label to hide/show the barprivate ViewJProgressBarMulti.LinkinglinkLinking information for sub-algorithmsprivate javax.swing.JProgressBarpBarThe progress barprivate javax.swing.JLabelpctLabelThe percentage displayed next to the progress barprivate java.lang.StringtitleBase title string inputted at instantiationprivate javax.swing.JLabeltitleLabelActual displayed label: also includes the message
 - 
Constructor SummaryConstructors Modifier Constructor Description privateAlgoContainer(java.lang.String _title, int min, int max)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddToPane()Adds what the container just built (based on the given inputs) to the component barPanel.private voidhide()Hide only the progress bar and the percentage textprivate voidremoveFromPane()Removes the components from this given container from the frameprivate voidshow()Display the hidden progress bar and textprivate voidupdateMessage(java.lang.String msg)private voidupdateValue(int value)Updates this containers components based on the input value
 
- 
- 
- 
Field Detail- 
titleprivate java.lang.String title Base title string inputted at instantiation
 - 
titleLabelprivate javax.swing.JLabel titleLabel Actual displayed label: also includes the message
 - 
pctLabelprivate javax.swing.JLabel pctLabel The percentage displayed next to the progress bar
 - 
linkprivate ViewJProgressBarMulti.Linking link Linking information for sub-algorithms
 - 
hideLabelprivate javax.swing.JLabel hideLabel The associated label to hide/show the bar
 - 
closeLabelprivate javax.swing.JLabel closeLabel The associated label to close the bar
 - 
pBarprivate javax.swing.JProgressBar pBar The progress bar
 
- 
 - 
Method Detail- 
addToPaneprivate void addToPane() Adds what the container just built (based on the given inputs) to the component barPanel.
 - 
removeFromPaneprivate void removeFromPane() Removes the components from this given container from the frame
 - 
hideprivate void hide() Hide only the progress bar and the percentage text
 - 
showprivate void show() Display the hidden progress bar and text
 - 
updateMessageprivate void updateMessage(java.lang.String msg) 
 - 
updateValueprivate void updateValue(int value) Updates this containers components based on the input value- Parameters:
- value- the new progress value
 
 
- 
 
-