|
||||||||||
| 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
com.melloware.jukes.util.NoFlickerSplashWrapper
public class NoFlickerSplashWrapper
A wrapper for com.jgoodies.uif.splash.ImageSplash which is
removing flickering when note or progress changes.
The reason of flickering is default lightweigt component's update(Graphics)
method which clears the background before paint(Graphics) method invocation.
Other solution is to ask JGoodies author to override
ImageSplash.update(Graphics): i.e. void update(Graphics g) {paint(g);}
| Nested Class Summary |
|---|
| 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 |
|---|
| 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 | |
|---|---|
NoFlickerSplashWrapper(com.jgoodies.uif.splash.ImageSplash anImageSplash)
Creates ImageSplashWrapper and initializes it with wrapped ImageSplash size/location values. |
|
| Method Summary | |
|---|---|
void |
closeSplash()
Invoked to close splash & release resources. |
void |
openSplash()
Invoked to open splash. |
void |
paint(Graphics g)
Paints the container. |
void |
setNote(String note)
Sets the note. |
void |
setProgress(int percent)
Sets the progress. |
void |
update(Graphics g)
Updates the container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NoFlickerSplashWrapper(com.jgoodies.uif.splash.ImageSplash anImageSplash)
anImageSplash - image splash screen to wrap.| Method Detail |
|---|
public void setNote(String note)
setNote in interface com.jgoodies.uif.splash.SplashProvidernote - splash note.SplashProvider.setNote(java.lang.String)public void setProgress(int percent)
setProgress in interface com.jgoodies.uif.splash.SplashProviderpercent - progress percent value (0 <= ... <= 100).SplashProvider.setProgress(int)public void closeSplash()
closeSplash in interface com.jgoodies.uif.splash.SplashProviderSplashProvider.closeSplash()public void openSplash()
openSplash in interface com.jgoodies.uif.splash.SplashProviderSplashProvider.openSplash()public void paint(Graphics g)
paint in class Windowg - the specified Graphics window.public void update(Graphics g)
update in class Containerg - the specified Graphics window.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||