|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
javamorph.CProgress
public class CProgress
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private JButton |
b_break
Break button for user abort. |
private JProgressBar |
b_progress
Progress bar JComponent. |
static Color |
BACKGROUND
Color of the remaining time. |
static Color |
FOREGROUND
Color of the elapsed time. |
private JFrame |
parent
Parent JFrame to enable modal behavior. |
static Dimension |
PREF_SIZE
Size of the progrssbar on screen. |
private static long |
serialVersionUID
Due to java API. |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CProgress(JFrame parent)
Constructor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
User has clicked the abort button. |
void |
close()
Close the progress bar when morphing is finnished. |
void |
open()
Show the progress bar. |
void |
setProgress(int progress,
int min,
int max)
Set function. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public static final Dimension PREF_SIZE
public static final Color FOREGROUND
public static final Color BACKGROUND
private JFrame parent
private JButton b_break
private JProgressBar b_progress
| Constructor Detail |
|---|
public CProgress(JFrame parent)
parent - Parent JFrame to enable modal behavior.| Method Detail |
|---|
public void open()
public void close()
public void setProgress(int progress,
int min,
int max)
progress - Elapsed steps.min - Offset. Normally zero.max - Number of steps.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||