public class StatusBar extends Object
| Modifier and Type | Field and Description |
|---|---|
float |
percentageDone
amount done on decode
|
| Constructor and Description |
|---|
StatusBar()
Initialises statusbar using default colors.
|
StatusBar(Color newColor)
Initialises statusbar using default colors.
|
| Modifier and Type | Method and Description |
|---|---|
Component |
getStatusObject()
Return handle on status bar so it can be displayed.
|
void |
initialiseStatus(String current)
Initiate status bar.
|
boolean |
isDone() |
boolean |
isEnabled() |
boolean |
isVisible() |
void |
resetStatus(String current)
Reset status bar.
|
void |
setClientDisplay()
set client flag to display
|
void |
setEnabled(boolean enable) |
void |
setProgress(int size)
Set progress value (called internally as page decoded).
|
void |
setProgress(String message,
int size)
set progress value (called internally as page decoded)
|
void |
setVisible(boolean visible) |
void |
updateStatus(String progress_bar,
int debug_level_to_use)
Update status if client being used also writes to log (called internally
as file decoded).
|
public StatusBar()
public StatusBar(Color newColor)
newColor - is of type Colorpublic final void initialiseStatus(String current)
current - is of type Stringpublic final void updateStatus(String progress_bar, int debug_level_to_use)
progress_bar - is of type Stringdebug_level_to_use - is of type intpublic final Component getStatusObject()
public final void setProgress(int size)
size - is of type intpublic final void setProgress(String message, int size)
message - The message displayed while the page decoding progressessize - The size of page decoding progresspublic final void resetStatus(String current)
current - is of type Stringpublic final void setClientDisplay()
public void setVisible(boolean visible)
public void setEnabled(boolean enable)
public boolean isVisible()
public boolean isEnabled()
public boolean isDone()
Copyright © 2017. All rights reserved.