Enum PhotoInterp

java.lang.Object
java.lang.Enum<PhotoInterp>
loci.formats.tiff.PhotoInterp
All Implemented Interfaces:
Serializable, Comparable<PhotoInterp>, java.lang.constant.Constable, CodedEnum

public enum PhotoInterp extends Enum<PhotoInterp> implements CodedEnum
Utility class for working with TIFF photometric interpretations.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static PhotoInterp[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PhotoInterp valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static PhotoInterp get(int code)
      Retrieves a photometric interpretation by reverse lookup of its "code".
      Parameters:
      code - The code to look up.
      Returns:
      The PhotoInterp instance for the code or null if it does not exist.
    • getCode

      public int getCode()
      Specified by:
      getCode in interface CodedEnum
    • getName

      public String getName()
      Retrieves the given name of the photometric interpretation.
      Returns:
      See above.
    • getMetadataType

      public String getMetadataType()
      Retrieves the metadata type of the photometric interpretation.
      Returns:
      See above.