Enum Class Color

java.lang.Object
java.lang.Enum<Color>
edu.kit.datamanager.takita.model.Color
All Implemented Interfaces:
Serializable, Comparable<Color>, Constable

public enum Color extends Enum<Color>
The Color enum represents the different Colors an annotation can have.
  • Enum Constant Details

    • TEXT_REGION

      public static final Color TEXT_REGION
    • IMAGE_REGION

      public static final Color IMAGE_REGION
    • LINE_DRAWING_REGION

      public static final Color LINE_DRAWING_REGION
    • GRAPHIC_REGION

      public static final Color GRAPHIC_REGION
    • TABLE_REGION

      public static final Color TABLE_REGION
    • CHART_REGION

      public static final Color CHART_REGION
    • SEPARATOR_REGION

      public static final Color SEPARATOR_REGION
    • MATHS_REGION

      public static final Color MATHS_REGION
    • CHEM_REGION

      public static final Color CHEM_REGION
    • MUSIC_REGION

      public static final Color MUSIC_REGION
    • NOISE_REGION

      public static final Color NOISE_REGION
    • UNKNOWN_REGION

      public static final Color UNKNOWN_REGION
    • CUSTOM_REGION

      public static final Color CUSTOM_REGION
    • PAGE_REGION

      public static final Color PAGE_REGION
    • DEFAULT

      public static final Color DEFAULT
  • Method Details

    • values

      public static Color[] 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

      public static Color valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Gets the lower case name of a color.
      Returns:
      String name
    • getColorHex

      public String getColorHex()
      Gets the color of a Color as hexadecimal value.
      Returns:
      string color as hex
    • stringToColor

      public static Color stringToColor(String stringColor)
      Converts String with color name to Color
      Parameters:
      stringColor -
      Returns:
      Color color
    • colorToString

      public static String colorToString(Color color)