de.grogra.ray2
public interface ProgressMonitor
Renderer to monitor
the progress of rendering and to show messages.| Modifier and Type | Field and Description |
|---|---|
static float |
DONE_PROGRESS
Value for
setProgress(java.lang.String, float) indicating that the renderer
has done its job. |
static float |
INDETERMINATE_PROGRESS
Value for
setProgress(java.lang.String, float) indicating that the current
state of progress is indetermined. |
| Modifier and Type | Method and Description |
|---|---|
void |
setProgress(java.lang.String text,
float progress)
This method is invoked by the renderer to monitor its progress.
|
void |
showMessage(java.lang.String message)
This method is invoked by the renderer to show a message, e.g.,
the statistics after rendering has completed.
|
static final float DONE_PROGRESS
setProgress(java.lang.String, float) indicating that the renderer
has done its job.static final float INDETERMINATE_PROGRESS
setProgress(java.lang.String, float) indicating that the current
state of progress is indetermined.void setProgress(java.lang.String text,
float progress)
text - short text to displayprogress - state of progress from 0 to 1, or one of the
constants INDETERMINATE_PROGRESS, DONE_PROGRESSvoid showMessage(java.lang.String message)
message - message to display