|
||||||||||
| 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
org.springframework.richclient.application.splash.InfiniteProgressPanel
public class InfiniteProgressPanel
Taken from a blog post by Romain Guy.
The only change is support for a background image.
| Nested Class Summary | |
|---|---|
protected class |
InfiniteProgressPanel.Animator
|
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected int |
alphaLevel
|
protected Thread |
animation
|
protected int |
barsCount
|
protected float |
fps
|
protected RenderingHints |
hints
|
protected int |
rampDelay
|
protected float |
shield
|
protected boolean |
started
|
protected String |
text
|
protected Area[] |
ticker
|
| 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 | |
|---|---|
InfiniteProgressPanel()
|
|
InfiniteProgressPanel(String text)
|
|
InfiniteProgressPanel(String text,
int barsCount)
|
|
InfiniteProgressPanel(String text,
int barsCount,
float shield)
|
|
InfiniteProgressPanel(String text,
int barsCount,
float shield,
float fps)
|
|
InfiniteProgressPanel(String text,
int barsCount,
float shield,
float fps,
int rampDelay)
|
|
| Method Summary | |
|---|---|
String |
getText()
|
void |
interrupt()
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paintComponent(Graphics g)
|
void |
setBackground(Image background)
|
void |
setText(String text)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Area[] ticker
protected Thread animation
protected boolean started
protected int alphaLevel
protected int rampDelay
protected float shield
protected String text
protected int barsCount
protected float fps
protected RenderingHints hints
| Constructor Detail |
|---|
public InfiniteProgressPanel()
public InfiniteProgressPanel(String text)
public InfiniteProgressPanel(String text,
int barsCount)
public InfiniteProgressPanel(String text,
int barsCount,
float shield)
public InfiniteProgressPanel(String text,
int barsCount,
float shield,
float fps)
public InfiniteProgressPanel(String text,
int barsCount,
float shield,
float fps,
int rampDelay)
| Method Detail |
|---|
public void setText(String text)
public String getText()
public void start()
public void stop()
public void interrupt()
public void paintComponent(Graphics g)
paintComponent in class JComponentpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void setBackground(Image background)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||