|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface MosaicPerformanceGraph.Delayed
Specifies a mosaic to be profiled in a background thread. An instance of this interface
can be given to the MosaicPerformanceGraph.plotLater(String, Delayed, long) method.
The methods defined in this interface will be called in a background thread some time after
plotLater. The workflow is as below:
An instance of Delayed is given to the plotLater method.
A background thread will sleep the specified amount of time. If plotLater
is invoked again while the background thread is sleeping, then the old Delayed
instance is discarded and replaced by the new one.
After the above delay, the getTileManager() method is
invoked in the background thread. The returned mosaic is given to
MosaicPerformanceGraph.plotEfficiency(String, TileManager).
After the plotEfficiency method terminated, exactly one of the
following methods is invoked in the Swing thread:
done(TileManager) on success.failed(Throwable) on failure.
| display/geotk-widgets-swing (download) | View source code for this class |
| Method Summary | |
|---|---|
void |
done(TileManager mosaic)
Invoked on the Swing thread after the profiling has been completed. |
void |
failed(Throwable exception)
Invoked on the Swing thread if an exception occurred during the profiling. |
TileManager |
getTileManager()
Returns the mosaic to profile. |
| Method Detail |
|---|
TileManager getTileManager()
throws IOException
IOException - if an I/O operation was required and failed.void done(TileManager mosaic)
getTileManager().
mosaic - The mosaic which has been profiled.void failed(Throwable exception)
exception - The exception which occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||