public class MapImageCreator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
MapImageCreator(@NotNull MapManager<G,A,R> mapManager,
@NotNull RendererFactory<G,A,R> rendererFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@Nullable java.awt.image.BufferedImage |
createImage(@NotNull MapFile mapFile,
boolean includeTiledMaps,
@NotNull ExportMapProgress progress)
Creates an image from a map file.
|
public MapImageCreator(@NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull RendererFactory<G,A,R> rendererFactory)
mapManager
- the map manager for loading mapsrendererFactory
- the renderer factory for creating images from
maps@Nullable public @Nullable java.awt.image.BufferedImage createImage(@NotNull @NotNull MapFile mapFile, boolean includeTiledMaps, @NotNull @NotNull ExportMapProgress progress)
mapFile
- the map fileincludeTiledMaps
- whether to include tiled mapsprogress
- the progress instance to notifynull
if the user has cancelled the process