net.sf.gridarta.model.settings
public class TestGlobalSettings extends AbstractGlobalSettings
GlobalSettings
implementation for testing purposes.Modifier and Type | Field and Description |
---|---|
private File |
mapsDirectory
The maps directory.
|
SHOW_MAIN_TOOLBAR_DEFAULT
Constructor and Description |
---|
TestGlobalSettings() |
Modifier and Type | Method and Description |
---|---|
File |
getArchDirectory()
Returns the archetype directory.
|
File |
getArchDirectoryDefault()
Returns the default archetype directory.
|
File |
getCollectedDirectory()
Returns the directory where collected archetypes are stored.
|
String |
getConfigSourceName()
Returns the name of the configuration source.
|
File |
getConfigurationDirectory()
Returns the configuration directory which is used to load configuration
information like types.xml.
|
File |
getCurrentSaveMapDirectory()
Returns the default directory for saving maps.
|
File |
getImageDirectory()
Returns the directory to save images to.
|
String |
getImageSet()
Returns the image set.
|
String |
getImageSetDefault()
Returns the default image set.
|
File |
getMapsDirectory()
Returns the default maps directory.
|
File |
getMapsDirectoryDefault()
Returns the default maps directory.
|
File |
getMediaDirectory()
Returns the media directory.
|
File |
getMediaDirectoryDefault()
Returns the default media directory.
|
File |
getPickmapDir()
Returns the pickmap directory.
|
String |
getUserName()
Returns the user name.
|
String |
getUserNameDefault()
Returns the default user name.
|
boolean |
hasImageSet()
Returns whether an image set is used.
|
boolean |
hasMediaDirectory()
Returns whether a media directory is used.
|
boolean |
isAutoPopupDocumentation() |
boolean |
isShowMainToolbar()
Returns whether the main toolbar should be shown.
|
boolean |
saveIndices()
Returns whether indices should be saved to disk.
|
void |
setArchDirectory(File archDirectory)
Sets the archetype directory.
|
void |
setAutoPopupDocumentation(boolean autoPopupDocumentation) |
void |
setConfigSourceName(String configSourceName)
Sets the name of the configuration source.
|
void |
setCurrentSaveMapDirectory(File currentSaveMapDirectory)
Sets the default directory for saving maps.
|
void |
setImageDirectory(File imageDirectory)
Sets the directory to save created image to.
|
void |
setImageSet(String imageSet)
Sets the image set.
|
void |
setMapsDirectory(File mapsDirectory)
Sets the default maps directory.
|
void |
setMediaDirectory(File mediaDirectory)
Sets the media directory.
|
void |
setShowMainToolbar(boolean selected)
Sets whether the main toolbar should be shown.
|
void |
setUserName(String userName)
Sets the user name.
|
addGlobalSettingsListener, fireMapsDirectoryChanged, fireShowMainToolbarChanged, removeGlobalSettingsListener
@NotNull private File mapsDirectory
public TestGlobalSettings()
@NotNull public File getArchDirectoryDefault()
@NotNull public File getArchDirectory()
public void setArchDirectory(@NotNull File archDirectory)
archDirectory
- the archetype directory@NotNull public File getMapsDirectoryDefault()
@NotNull public File getMapsDirectory()
public void setMapsDirectory(@NotNull File mapsDirectory)
mapsDirectory
- the default maps directorypublic void setImageDirectory(@NotNull File imageDirectory)
GlobalSettings.getMapsDirectory()
and is not retained across editor restarts.imageDirectory
- the image directory@NotNull public File getImageDirectory()
@NotNull public String getConfigSourceName()
public void setConfigSourceName(@NotNull String configSourceName)
configSourceName
- the name@NotNull public File getCurrentSaveMapDirectory()
public void setCurrentSaveMapDirectory(@NotNull File currentSaveMapDirectory)
currentSaveMapDirectory
- the default directory for saving mapspublic boolean isAutoPopupDocumentation()
public void setAutoPopupDocumentation(boolean autoPopupDocumentation)
@NotNull public File getPickmapDir()
public boolean hasMediaDirectory()
@NotNull public File getMediaDirectoryDefault()
@NotNull public File getMediaDirectory()
public void setMediaDirectory(@NotNull File mediaDirectory)
mediaDirectory
- the media directorypublic boolean hasImageSet()
@NotNull public String getImageSetDefault()
@NotNull public String getImageSet()
public void setImageSet(@NotNull String imageSet)
GlobalSettings
imageSet
- the image set@NotNull public File getConfigurationDirectory()
@NotNull public File getCollectedDirectory()
public boolean isShowMainToolbar()
public void setShowMainToolbar(boolean selected)
selected
- whether the main toolbar should be shown@NotNull public String getUserName()
@NotNull public String getUserNameDefault()
public void setUserName(@NotNull String userName)
userName
- the user namepublic boolean saveIndices()
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.