|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.RovingProgress
public class RovingProgress
Shows a roving bar
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static Color |
DEFAULT_COLOR
Default color |
static Insets |
DEFAULT_INSETS
Default insets |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
RovingProgress()
ctor |
|
RovingProgress(Color c)
ctor |
|
RovingProgress(Color c,
String label)
ctor |
|
RovingProgress(String label)
ctor |
|
| Method Summary | |
|---|---|
boolean |
drawFilledSquare()
Should we draw a filled square |
boolean |
isRunning()
Are we running |
static void |
main(String[] args)
test |
void |
paint(Graphics g)
Paint |
void |
paintInner(Graphics g)
paint |
void |
paintLabel(Graphics g,
Rectangle bounds)
Paint the label if its non-null |
void |
start()
Start running |
void |
stop()
Stop running |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Insets DEFAULT_INSETS
public static final Color DEFAULT_COLOR
| Constructor Detail |
|---|
public RovingProgress()
public RovingProgress(String label)
label - The labelpublic RovingProgress(Color c)
c - Bar color
public RovingProgress(Color c,
String label)
c - colorlabel - label| Method Detail |
|---|
public void stop()
public void start()
public boolean isRunning()
public final void paint(Graphics g)
paint in class JComponentg - The graphicspublic void paintInner(Graphics g)
g - the graphicspublic boolean drawFilledSquare()
public void paintLabel(Graphics g,
Rectangle bounds)
g - graphicsbounds - component boundspublic static void main(String[] args)
args - cmd line args
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||