Gridarta Editor
net.sf.gridarta.gui.utils.Severity Enum Reference

Severity levels for colors of tabs. More...

+ Collaboration diagram for net.sf.gridarta.gui.utils.Severity:

Public Member Functions

Color getColor ()
 Returns the tab color. More...
 
int getLevel ()
 Returns the severity level. More...
 
 Severity (@NotNull final Color color, final int level)
 Creates a new instance. More...
 

Public Attributes

 DEFAULT =(Color.BLACK, 0)
 The tab contents are unchanged from defaults. More...
 
 ERROR =(Color.RED, 2)
 The tab contents are invalid. More...
 
 MODIFIED =(Color.BLUE, 1)
 The tab contents are modified from defaults. More...
 

Private Attributes

final Color color
 The tab color. More...
 
final int level
 The severity level. More...
 

Detailed Description

Severity levels for colors of tabs.

Author
Andreas Kirschbaum

Definition at line 29 of file Severity.java.

Constructor & Destructor Documentation

◆ Severity()

net.sf.gridarta.gui.utils.Severity.Severity ( @NotNull final Color  color,
final int  level 
)

Creates a new instance.

Parameters
colorthe tab color
levelthe severity level

Definition at line 62 of file Severity.java.

Member Function Documentation

◆ getColor()

Color net.sf.gridarta.gui.utils.Severity.getColor ( )

Returns the tab color.

Returns
the tab color

Definition at line 72 of file Severity.java.

◆ getLevel()

int net.sf.gridarta.gui.utils.Severity.getLevel ( )

Returns the severity level.

Returns
the severity level

Definition at line 80 of file Severity.java.

Referenced by net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl< G, A, R >.setTabSeverity().

+ Here is the caller graph for this function:

Member Data Documentation

◆ color

final Color net.sf.gridarta.gui.utils.Severity.color
private

The tab color.

Definition at line 50 of file Severity.java.

◆ DEFAULT

◆ ERROR

◆ level

final int net.sf.gridarta.gui.utils.Severity.level
private

The severity level.

Definition at line 55 of file Severity.java.

◆ MODIFIED


The documentation for this enum was generated from the following file: