Enum Class ColorEnum

java.lang.Object
java.lang.Enum<ColorEnum>
net.sf.jasperreports.engine.type.ColorEnum
All Implemented Interfaces:
Serializable, Comparable<ColorEnum>, Constable, NamedEnum, NamedValueEnum<Color>

public enum ColorEnum extends Enum<ColorEnum> implements NamedValueEnum<Color>
Author:
Teodor Danciu (teodord@users.sourceforge.net)
  • Enum Constant Details

    • BLACK

      public static final ColorEnum BLACK
    • BLUE

      public static final ColorEnum BLUE
    • CYAN

      public static final ColorEnum CYAN
    • DARK_GRAY

      public static final ColorEnum DARK_GRAY
    • GRAY

      public static final ColorEnum GRAY
    • GREEN

      public static final ColorEnum GREEN
    • LIGHT_GRAY

      public static final ColorEnum LIGHT_GRAY
    • MAGENTA

      public static final ColorEnum MAGENTA
    • ORANGE

      public static final ColorEnum ORANGE
    • PINK

      public static final ColorEnum PINK
    • RED

      public static final ColorEnum RED
    • YELLOW

      public static final ColorEnum YELLOW
    • WHITE

      public static final ColorEnum WHITE
  • Method Details

    • values

      public static ColorEnum[] 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 ColorEnum 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
    • getColor

      public final Color getColor()
    • getValue

      public final Color getValue()
      Specified by:
      getValue in interface NamedValueEnum<Color>
    • getName

      public String getName()
      Specified by:
      getName in interface NamedEnum
    • getByName

      public static ColorEnum getByName(String name)
    • getByColor

      public static ColorEnum getByColor(Color color)