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
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTilingHandler
(String aname, File cdir, Dimension tdim, int mhlim) Creates aTilingHandler
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup()
protected TilingHandler.StateMachineHandler
createStateMachineHandler
(int tcount, Future<Integer> fut) findImages
(DataArchive archive, FileStore tcache, List<String> multi, List<Pair<String, IOException>> failed) getImagePaths
(DataArchive archive) protected Dimension
getImageSize
(DataArchive archive, String ipath) protected boolean
isFresh
(FileArchive archive, FileStore tcache, String ipath) Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
isFresh
(FileArchive archive, FileStore tcache, String ipath, Dimension idim) protected void
protected String[]
makeSlicerCommandLine
(int heap) runSlicer
(List<String> multi, int maxheap, TilingHandler.StateMachineHandler h) void
Slices the tiles.
-
Field Details
-
aname
-
cdir
-
tdim
-
maxheap_limit
protected final int maxheap_limit -
SLICER_SUCCESS
protected static final int SLICER_SUCCESS- See Also:
-
SLICER_GAVE_UP
protected static final int SLICER_GAVE_UP- See Also:
-
-
Constructor Details
-
TilingHandler
-
-
Method Details
-
isFresh
protected boolean isFresh(FileArchive archive, FileStore tcache, String ipath, Dimension idim) throws IOException - Throws:
IOException
-
isFresh
@Deprecated(since="2023-04-17", forRemoval=true) protected boolean isFresh(FileArchive archive, FileStore tcache, String ipath) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
getImageSize
- Throws:
IOException
-
getImagePaths
- Throws:
IOException
-
findImages
protected Pair<Integer,Integer> findImages(DataArchive archive, FileStore tcache, List<String> multi, List<Pair<String, IOException>> failed) throws IOException- Throws:
IOException
-
makeSlicerCommandLine
-
createStateMachineHandler
protected TilingHandler.StateMachineHandler createStateMachineHandler(int tcount, Future<Integer> fut) -
runSlicer
protected Pair<Integer,Integer> runSlicer(List<String> multi, int maxheap, TilingHandler.StateMachineHandler h) throws CancellationException, IOException - Throws:
CancellationException
IOException
-
makeHashDirs
- Throws:
IOException
-
cleanup
- Throws:
IOException
-
sliceTiles
Slices the tiles.- Throws:
IOException
- if one occursCancellationException
-