java.lang.Object
java.lang.Enum<ImageMode>
com.orchestranetworks.addon.dama.ext.enumeration.ImageMode
All Implemented Interfaces:
Serializable, Comparable<ImageMode>, Constable

public enum ImageMode extends Enum<ImageMode>
The mode determines how the image is resized to fit the desired dimensions.
  • Enum Constant Details

    • AUTOMATIC

      public static final ImageMode AUTOMATIC
    • FIT_EXACT

      public static final ImageMode FIT_EXACT
    • FIT_TO_WIDTH

      public static final ImageMode FIT_TO_WIDTH
    • FIT_TO_HEIGHT

      public static final ImageMode FIT_TO_HEIGHT
  • Method Details

    • values

      public static ImageMode[] 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 ImageMode 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
    • parse

      public static ImageMode parse(String mode)
    • getMode

      public String getMode()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ImageMode>