|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JProgressBar | +--planetj.gui.CMProgressBar
Insert the type's description here. Creation date: (4/25/02 9:03:11 AM)
Field Summary |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CMProgressBar()
CMProgressBar constructor comment. |
|
CMProgressBar(BoundedRangeModel newModel)
CMProgressBar constructor comment. |
|
CMProgressBar(int orient)
CMProgressBar constructor comment. |
|
CMProgressBar(int min,
int max)
CMProgressBar constructor comment. |
|
CMProgressBar(int orient,
int min,
int max)
CMProgressBar constructor comment. |
Method Summary | |
void |
beginCount(int increment,
int rate,
int maxValue)
Starts a thread to begin "counting" progress on the progress bar. |
void |
beginExponentialCount(int increment,
int initialRate,
int factor,
int maxValue)
Starts a thread to begin "counting" progress on the progress bar. |
void |
completeCount()
Completes the progress count (advances the count immediately to its final value) if one is in progress |
void |
finish()
Sets the progress bar's value to its maximum (any count in progress is halted) |
void |
haltCount()
Stops the progress count (if one is in progress) |
boolean |
isCounting()
Tests if a progress count in currently in progress |
void |
reset()
Resets the progress bar's value. |
void |
setValue(int value)
Sets the progress bar's value. |
Methods inherited from class javax.swing.JProgressBar |
addChangeListener, getAccessibleContext, getChangeListeners, getMaximum, getMinimum, getModel, getOrientation, getPercentComplete, getString, getUI, getUIClassID, getValue, isBorderPainted, isIndeterminate, isStringPainted, removeChangeListener, setBorderPainted, setIndeterminate, setMaximum, setMinimum, setModel, setOrientation, setString, setStringPainted, setUI, updateUI |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMProgressBar()
public CMProgressBar(int orient)
orient
- intpublic CMProgressBar(int min, int max)
min
- intmax
- intpublic CMProgressBar(int orient, int min, int max)
orient
- intmin
- intmax
- intpublic CMProgressBar(BoundedRangeModel newModel)
newModel
- javax.swing.BoundedRangeModelMethod Detail |
public void beginCount(int increment, int rate, int maxValue)
increment
- This is the amount the progress bar will be advanced by each timerate
- The number of milliseconds to wait between each advance of the progress barmaxValue
- The progress bar will not advance beyond this valuepublic void beginExponentialCount(int increment, int initialRate, int factor, int maxValue)
increment
- This is the amount the progress bar will be advanced by each timeinitialRate
- The number of milliseconds to wait between each advance of the progress bar (at first)factor
- A factor by which the count will be slowed. The bigger the number the slower the count will
eventually get. A good default value is 10% of the initial rate.maxValue
- The progress bar will not advance beyond this valuepublic void completeCount()
public void finish()
public void haltCount()
public boolean isCounting()
public void reset()
public void setValue(int value)
setValue
in class JProgressBar
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |