public class ParallelMapTileLoader extends java.lang.Object implements OrderedResultsExecutor.ResultCollector<MapTileTask>
OrderedResultsExecutor to
do the things in // and a BlockingSimpleTarget to
know when everything is finished.| Constructor and Description |
|---|
ParallelMapTileLoader(RenderingContext context,
com.itextpdf.text.pdf.PdfContentByte dc) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTileToLoad(MapTileTask task)
Schedule a tile to be loaded and rendered using the given task.
|
void |
handle(MapTileTask mapTileTaskResult)
Called each time a result is available, in the order the tiles were
scheduled to be loaded.
|
void |
waitForCompletion()
Wait for all the tiles to be loaded and rendered.
|
public ParallelMapTileLoader(RenderingContext context, com.itextpdf.text.pdf.PdfContentByte dc)
public void addTileToLoad(MapTileTask task)
public void waitForCompletion()
public void handle(MapTileTask mapTileTaskResult)
handle in interface OrderedResultsExecutor.ResultCollector<MapTileTask>