Enum Class ImageChannels

java.lang.Object
java.lang.Enum<ImageChannels>
com.spinyowl.legui.image.ImageChannels
All Implemented Interfaces:
Serializable, Comparable<ImageChannels>, Constable

public enum ImageChannels extends Enum<ImageChannels>
Channels of image.
  • Enum Constant Details

  • Method Details

    • values

      public static ImageChannels[] 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 ImageChannels 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
    • instance

      public static ImageChannels instance(int channels)
    • getChannels

      public int getChannels()
    • toString

      public String toString()
      Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum type should override this method when a more "programmer-friendly" string form exists.
      Overrides:
      toString in class Enum<ImageChannels>
      Returns:
      the name of this enum constant