Gridarta Editor
EditorSettingsKey.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2023 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.model.settings;
21 
22 import org.jetbrains.annotations.NotNull;
23 
27 public enum EditorSettingsKey {
28 
32  ANALYZE_HIGHLIGHT0("AnalyzeHighlight0"),
33 
37  ANALYZE_HIGHLIGHT1("AnalyzeHighlight1"),
38 
42  ANALYZE_HIGHLIGHT2("AnalyzeHighlight2"),
43 
47  ANALYZE_FILTER_OUT("AnalyzeFilterOut");
48 
52  @NotNull
53  private final String key;
54 
59  EditorSettingsKey(@NotNull final String key) {
60  this.key = key;
61  }
62 
67  @NotNull
68  public String getKey() {
69  return key;
70  }
71 
72 }
net.sf.gridarta.model.settings.EditorSettingsKey.EditorSettingsKey
EditorSettingsKey(@NotNull final String key)
Creates a new instance.
Definition: EditorSettingsKey.java:59
net.sf.gridarta.model.settings.EditorSettingsKey.ANALYZE_HIGHLIGHT2
ANALYZE_HIGHLIGHT2
The key for saving the menu state "Analyze|Highlight 1".
Definition: EditorSettingsKey.java:42
net.sf.gridarta.model.settings.EditorSettingsKey
Possible keys for saving values in the EditorSettings.
Definition: EditorSettingsKey.java:27
net.sf.gridarta.model.settings.EditorSettingsKey.getKey
String getKey()
Returns the settings key name.
Definition: EditorSettingsKey.java:68
net.sf.gridarta.model.settings.EditorSettingsKey.ANALYZE_FILTER_OUT
ANALYZE_FILTER_OUT
The key for saving the menu state "Analyze|Highlight 2".
Definition: EditorSettingsKey.java:47
net.sf.gridarta.model.settings.EditorSettingsKey.key
final String key
The settings key.
Definition: EditorSettingsKey.java:53
net.sf.gridarta.model.settings.EditorSettingsKey.ANALYZE_HIGHLIGHT1
ANALYZE_HIGHLIGHT1
The key for saving the menu state "Analyze|Highlight 0".
Definition: EditorSettingsKey.java:37
net.sf.gridarta.model.settings.EditorSettingsKey.ANALYZE_HIGHLIGHT0
ANALYZE_HIGHLIGHT0
The key for saving the menu state "Analyze|Filter view".
Definition: EditorSettingsKey.java:32