Gridarta Editor
Severity.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.gui.utils;
21
22
import
java.awt.Color;
23
import
org.jetbrains.annotations.NotNull;
24
29
public
enum
Severity
{
30
34
DEFAULT
(Color.BLACK, 0),
35
39
MODIFIED
(Color.BLUE, 1),
40
44
ERROR
(Color.RED, 2);
45
49
@NotNull
50
private
final
Color
color
;
51
55
private
final
int
level
;
56
62
Severity
(@NotNull
final
Color color,
final
int
level) {
63
this.color = color;
64
this.level = level;
65
}
66
71
@NotNull
72
public
Color
getColor
() {
73
return
color;
74
}
75
80
public
int
getLevel
() {
81
return
level;
82
}
83
84
}
net.sf.gridarta.gui.utils.Severity.MODIFIED
MODIFIED
The tab contents are modified from defaults.
Definition:
Severity.java:39
net.sf.gridarta.gui.utils.Severity.level
final int level
The severity level.
Definition:
Severity.java:55
net.sf.gridarta.gui.utils.Severity
Severity levels for colors of tabs.
Definition:
Severity.java:29
net.sf.gridarta.gui.utils.Severity.color
final Color color
The tab color.
Definition:
Severity.java:50
net.sf.gridarta.gui.utils.Severity.Severity
Severity(@NotNull final Color color, final int level)
Creates a new instance.
Definition:
Severity.java:62
net.sf.gridarta.gui.utils.Severity.ERROR
ERROR
The tab contents are invalid.
Definition:
Severity.java:44
net.sf.gridarta.gui.utils.Severity.getColor
Color getColor()
Returns the tab color.
Definition:
Severity.java:72
net.sf.gridarta.gui.utils.Severity.getLevel
int getLevel()
Returns the severity level.
Definition:
Severity.java:80
net.sf.gridarta.gui.utils.Severity.DEFAULT
DEFAULT
The tab contents are unchanged from defaults.
Definition:
Severity.java:34
src
gridarta
src
main
java
net
sf
gridarta
gui
utils
Severity.java
Generated on Fri Aug 1 2025 01:04:46 for Gridarta Editor by
1.8.17