public final class AwtUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.mapsforge.map.layer.cache.TileCache |
createTileCache(int tileSize,
double overdrawFactor,
int capacity,
java.io.File cacheDirectory)
Utility function to create a two-level tile cache with the right size, using the size of the screen.
|
static int |
getMinimumCacheSize(int tileSize,
double overdrawFactor)
Compute the minimum cache size for a view, using the size of the screen.
|
public static org.mapsforge.map.layer.cache.TileCache createTileCache(int tileSize, double overdrawFactor, int capacity, java.io.File cacheDirectory)
Combine with FrameBufferController.setUseSquareFrameBuffer(false);
tileSize
- the tile sizeoverdrawFactor
- the overdraw factor applied to the map viewcapacity
- the maximum number of entries in file cachecacheDirectory
- the directory where cached tiles will be storedpublic static int getMinimumCacheSize(int tileSize, double overdrawFactor)
Combine with FrameBufferController.setUseSquareFrameBuffer(false);
tileSize
- the tile sizeoverdrawFactor
- the overdraw factor applied to the map view