public interface ProgressMonitor
This interface is used by a
Renderer
to monitor
the progress of rendering and to show messages.
To ease the usage of the raytracer in groimp, it is now depending on Utility.
The ProgressMonitor used is the one from there.- Author:
- Ole Kniemeyer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
Value forsetProgress(java.lang.String, float)
indicating that the renderer has done its job.static final float
Value forsetProgress(java.lang.String, float)
indicating that the current state of progress is indetermined. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setProgress
(String text, float progress) This method is invoked by the renderer to monitor its progress.void
showMessage
(String message) This method is invoked by the renderer to show a message, e.g., the statistics after rendering has completed.
-
Field Details
-
INDETERMINATE_PROGRESS
static final float INDETERMINATE_PROGRESSValue forsetProgress(java.lang.String, float)
indicating that the current state of progress is indetermined.- See Also:
-
DONE_PROGRESS
static final float DONE_PROGRESSValue forsetProgress(java.lang.String, float)
indicating that the renderer has done its job.- See Also:
-
-
Method Details
-
setProgress
This method is invoked by the renderer to monitor its progress.- Parameters:
text
- short text to displayprogress
- state of progress from 0 to 1, or one of the constantsINDETERMINATE_PROGRESS
,DONE_PROGRESS
-
showMessage
This method is invoked by the renderer to show a message, e.g., the statistics after rendering has completed.- Parameters:
message
- message to display
-