// Wait until tile is available (loaded asynchronously)
while (tile.getWidth(null) < 0 && !inDownload)
{
- // System.out.println("Wait for tile width");
try {
- Thread.sleep(inDownload ? 500 : 100);
+ Thread.sleep(100);
}
catch (InterruptedException ie) {}
}
- // work out where to copy it to, paint it
- // System.out.println("Painting tile " + x + "," + y + " at " + xOffset + "," + yOffset);
numTilesUsed++;
g.drawImage(tile, xOffset, yOffset, null);
}
{
// Doesn't need any action
}
+
+ /** React to cache problem */
+ public void reportCacheFailure()
+ {
+ // Doesn't need any action
+ }
}