Class StyledTiledMapRenderer.TileLoader
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.visitor.paint.StyledTiledMapRenderer.TileLoader
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- StyledTiledMapRenderer
class StyledTiledMapRenderer.TileLoader extends java.lang.Object implements java.lang.Runnable
A loader for tiles
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
cancel
private OsmData<?,?,?,?>
data
private boolean
done
private TileZXY
tile
private java.util.Collection<StyledTiledMapRenderer.TileLoader>
tileCollection
private int
tileSize
-
Constructor Summary
Constructors Constructor Description TileLoader(OsmData<?,?,?,?> data, TileZXY tile, int tileSize, java.util.Collection<StyledTiledMapRenderer.TileLoader> tileCollection)
Create a new tile loader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
cacheTile(java.awt.image.BufferedImage tImage)
Finish a tile generation job(package private) void
cancel()
Cancel this job without causing aCancellationException
void
run()
-
-
-
Field Detail
-
tileSize
private final int tileSize
-
cancel
private boolean cancel
-
tileCollection
private final java.util.Collection<StyledTiledMapRenderer.TileLoader> tileCollection
-
done
private boolean done
-
-
Constructor Detail
-
TileLoader
TileLoader(OsmData<?,?,?,?> data, TileZXY tile, int tileSize, java.util.Collection<StyledTiledMapRenderer.TileLoader> tileCollection)
Create a new tile loader- Parameters:
data
- The data to use for paintingtile
- The tile this tile loader is fortileSize
- The expected size of this tiletileCollection
- The collection of tiles that this tile is being rendered with (for batching)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
cacheTile
private void cacheTile(java.awt.image.BufferedImage tImage)
Finish a tile generation job- Parameters:
tImage
- The tile image for this job
-
cancel
void cancel()
Cancel this job without causing aCancellationException
-
-