Package edu.kit.datamanager.takita.model
Enum Class Color
- All Implemented Interfaces:
Serializable,Comparable<Color>,Constable
The Color enum represents the different Colors an annotation can have.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcolorToString(Color color) Gets the color of a Color as hexadecimal value.getName()Gets the lower case name of a color.static ColorstringToColor(String stringColor) Converts String with color name to Colorstatic ColorReturns the enum constant of this class with the specified name.static Color[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT_REGION
-
IMAGE_REGION
-
LINE_DRAWING_REGION
-
GRAPHIC_REGION
-
TABLE_REGION
-
CHART_REGION
-
SEPARATOR_REGION
-
MATHS_REGION
-
CHEM_REGION
-
MUSIC_REGION
-
ADVERT_REGION
-
NOISE_REGION
-
UNKNOWN_REGION
-
CUSTOM_REGION
-
PAGE_REGION
-
DEFAULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Gets the lower case name of a color.- Returns:
- String name
-
getColorHex
Gets the color of a Color as hexadecimal value.- Returns:
- string color as hex
-
stringToColor
Converts String with color name to Color- Parameters:
stringColor-- Returns:
- Color color
-
colorToString
-