Package VASSAL.launch
Class TilingHandler
java.lang.Object
VASSAL.launch.TilingHandler
A launcher for the process which tiles large images.
- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTilingHandler(String aname, File cdir, Dimension tdim, int mhlim)
Creates aTilingHandler
.TilingHandler(String aname, File cdir, Dimension tdim, int mhlim, int pid)
Deprecated.Retained for VASL compatibility. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup()
findImages(DataArchive archive, FileStore tcache, List<String> multi, List<Pair<String,IOException>> failed)
protected Dimension
getImageSize(DataArchive archive, String ipath)
protected boolean
isFresh(FileArchive archive, FileStore tcache, String ipath)
protected void
protected void
void
Slices the tiles.
-
Field Details
-
aname
-
cdir
-
tdim
-
maxheap_limit
protected final int maxheap_limit -
pid
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Details
-
TilingHandler
Creates aTilingHandler
.- Parameters:
aname
- the path to the ZIP archivecdir
- the tile cache directorytdim
- the tile size
-
TilingHandler
Deprecated.Retained for VASL compatibility. Remove sometime after VASL 6.6.2.
-
-
Method Details
-
isFresh
- Throws:
IOException
-
getImageSize
- Throws:
IOException
-
findImages
protected Pair<Integer,Integer> findImages(DataArchive archive, FileStore tcache, List<String> multi, List<Pair<String,IOException>> failed) throws IOException- Throws:
IOException
-
runSlicer
protected void runSlicer(List<String> multi, int tcount, int maxheap) throws CancellationException, IOException- Throws:
CancellationException
IOException
-
makeHashDirs
- Throws:
IOException
-
cleanup
- Throws:
IOException
-
sliceTiles
Slices the tiles.- Throws:
IOException
- if one occursCancellationException
-