net.sf.gridarta.model.settings
public interface GlobalSettings
Modifier and Type | Field and Description |
---|---|
static boolean |
SHOW_MAIN_TOOLBAR_DEFAULT
Default value for whether the main window's toolbar is shown.
|
Modifier and Type | Method and Description |
---|---|
void |
addGlobalSettingsListener(GlobalSettingsListener listener)
Adds a
GlobalSettingsListener to be notified of changes. |
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.
|
void |
removeGlobalSettingsListener(GlobalSettingsListener listener)
Removes a
GlobalSettingsListener to be notified of changes. |
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.
|
static final boolean SHOW_MAIN_TOOLBAR_DEFAULT
@NotNull File getArchDirectoryDefault()
@NotNull File getArchDirectory()
void setArchDirectory(@NotNull File archDirectory)
archDirectory
- the archetype directory@NotNull File getMapsDirectoryDefault()
@NotNull File getMapsDirectory()
void setMapsDirectory(@NotNull File mapsDirectory)
mapsDirectory
- the default maps directoryvoid setImageDirectory(@NotNull File imageDirectory)
getMapsDirectory()
and is not retained across editor restarts.imageDirectory
- the image directory@NotNull File getImageDirectory()
@NotNull String getConfigSourceName()
void setConfigSourceName(@NotNull String configSourceName)
configSourceName
- the name@NotNull File getCurrentSaveMapDirectory()
void setCurrentSaveMapDirectory(@NotNull File currentSaveMapDirectory)
currentSaveMapDirectory
- the default directory for saving mapsboolean isAutoPopupDocumentation()
void setAutoPopupDocumentation(boolean autoPopupDocumentation)
@NotNull File getPickmapDir()
boolean hasMediaDirectory()
@NotNull File getMediaDirectoryDefault()
@NotNull File getMediaDirectory()
void setMediaDirectory(@NotNull File mediaDirectory)
mediaDirectory
- the media directoryboolean hasImageSet()
@NotNull String getImageSetDefault()
@NotNull String getImageSet()
void setImageSet(@NotNull String imageSet)
imageSet
- the image set@NotNull File getConfigurationDirectory()
@NotNull File getCollectedDirectory()
boolean isShowMainToolbar()
void setShowMainToolbar(boolean selected)
selected
- whether the main toolbar should be shown@NotNull String getUserName()
@NotNull String getUserNameDefault()
void setUserName(@NotNull String userName)
userName
- the user namevoid addGlobalSettingsListener(@NotNull GlobalSettingsListener listener)
GlobalSettingsListener
to be notified of changes.listener
- the listenervoid removeGlobalSettingsListener(@NotNull GlobalSettingsListener listener)
GlobalSettingsListener
to be notified of changes.listener
- the listenerboolean saveIndices()
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.