Package gov.nih.mipav.view
Class ViewJProgressBarMulti.AlgoContainer
java.lang.Object
gov.nih.mipav.view.ViewJProgressBarMulti.AlgoContainer
- Enclosing class:
ViewJProgressBarMulti
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
FieldsModifier and TypeFieldDescriptionprivate JLabelThe associated label to close the barprivate JLabelThe associated label to hide/show the barprivate ViewJProgressBarMulti.LinkingLinking information for sub-algorithmsprivate JProgressBarThe progress barprivate JLabelThe percentage displayed next to the progress barprivate StringBase title string inputted at instantiationprivate JLabelActual displayed label: also includes the message -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidAdds 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 voidRemoves the components from this given container from the frameprivate voidshow()Display the hidden progress bar and textprivate voidupdateMessage(String msg) private voidupdateValue(int value) Updates this containers components based on the input value
-
Field Details
-
title
Base title string inputted at instantiation -
titleLabel
Actual displayed label: also includes the message -
pctLabel
The percentage displayed next to the progress bar -
link
Linking information for sub-algorithms -
hideLabel
The associated label to hide/show the bar -
closeLabel
The associated label to close the bar -
pBar
The progress bar
-
-
Constructor Details
-
AlgoContainer
-
-
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
-
updateValue
private void updateValue(int value) Updates this containers components based on the input value- Parameters:
value- the new progress value
-