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.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 barprivate javax.swing.JLabel
hideLabel
The associated label to hide/show the barprivate ViewJProgressBarMulti.Linking
link
Linking information for sub-algorithmsprivate javax.swing.JProgressBar
pBar
The progress barprivate javax.swing.JLabel
pctLabel
The percentage displayed next to the progress barprivate java.lang.String
title
Base title string inputted at instantiationprivate 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 textprivate void
removeFromPane()
Removes the components from this given container from the frameprivate void
show()
Display the hidden progress bar and textprivate void
updateMessage(java.lang.String msg)
private void
updateValue(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
-
-