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 Summary
Fields 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 Summary
Constructors Modifier Constructor Description privateAlgoContainer(java.lang.String _title, int min, int max)
-
Method Summary
All 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
-
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
-
link
private ViewJProgressBarMulti.Linking link
Linking information for sub-algorithms
-
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
-
-
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
-
-