Package net.sf.gridarta.model.settings
Class DefaultVolatileSettings
- java.lang.Object
-
- net.sf.gridarta.model.settings.DefaultVolatileSettings
-
- All Implemented Interfaces:
VolatileSettings
public class DefaultVolatileSettings extends java.lang.Object implements VolatileSettings
Default implementation ofVolatileSettings.
-
-
Constructor Summary
Constructors Constructor Description DefaultVolatileSettings(@NotNull java.io.File mapsDirectory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.FilegetCurrentSaveMapDirectory()Returns the default directory for saving maps.@NotNull java.io.FilegetImageDirectory()Returns the directory to save images to.voidsetCurrentSaveMapDirectory(@NotNull java.io.File currentSaveMapDirectory)Sets the default directory for saving maps.voidsetImageDirectory(@NotNull java.io.File imageDirectory)Sets the directory to save created image to.
-
-
-
Method Detail
-
getImageDirectory
@NotNull public @NotNull java.io.File getImageDirectory()
Description copied from interface:VolatileSettingsReturns the directory to save images to.- Specified by:
getImageDirectoryin interfaceVolatileSettings- Returns:
- the image directory
-
setImageDirectory
public void setImageDirectory(@NotNull @NotNull java.io.File imageDirectory)Description copied from interface:VolatileSettingsSets the directory to save created image to. It defaults to the maps directory and is not retained across editor restarts.- Specified by:
setImageDirectoryin interfaceVolatileSettings- Parameters:
imageDirectory- the image directory
-
getCurrentSaveMapDirectory
@NotNull public @NotNull java.io.File getCurrentSaveMapDirectory()
Description copied from interface:VolatileSettingsReturns the default directory for saving maps.- Specified by:
getCurrentSaveMapDirectoryin interfaceVolatileSettings- Returns:
- the default directory for saving maps
-
setCurrentSaveMapDirectory
public void setCurrentSaveMapDirectory(@NotNull @NotNull java.io.File currentSaveMapDirectory)Description copied from interface:VolatileSettingsSets the default directory for saving maps.- Specified by:
setCurrentSaveMapDirectoryin interfaceVolatileSettings- Parameters:
currentSaveMapDirectory- the default directory for saving maps
-
-