Enum SizeCriterion.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      COVERING_BOUNDING_BOX
      Picks all formats where the image size covers a bounding box specified by width and height.
      EXACTLY
      Picks all formats where the image size is exactly as specified by width and height.
      INSIDE_BOUNDING_BOX
      Picks all formats where the image size is inside a bounding box specified by width and height.
      LARGEST_IN_BOUNDING_BOX
      Picks that format where the image size is the largest one which just fits into a bounding box specified by width and height.
      SMALLEST_COVERING_BOUNDING_BOX
      Picks that format where the image size is the smallest one covering a bounding box specified by width and height.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SizeCriterion.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SizeCriterion.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LARGEST_IN_BOUNDING_BOX

        public static final SizeCriterion.Type LARGEST_IN_BOUNDING_BOX
        Picks that format where the image size is the largest one which just fits into a bounding box specified by width and height.
      • INSIDE_BOUNDING_BOX

        public static final SizeCriterion.Type INSIDE_BOUNDING_BOX
        Picks all formats where the image size is inside a bounding box specified by width and height.
      • SMALLEST_COVERING_BOUNDING_BOX

        public static final SizeCriterion.Type SMALLEST_COVERING_BOUNDING_BOX
        Picks that format where the image size is the smallest one covering a bounding box specified by width and height.
      • COVERING_BOUNDING_BOX

        public static final SizeCriterion.Type COVERING_BOUNDING_BOX
        Picks all formats where the image size covers a bounding box specified by width and height.
      • EXACTLY

        public static final SizeCriterion.Type EXACTLY
        Picks all formats where the image size is exactly as specified by width and height.
    • Method Detail

      • values

        public static SizeCriterion.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SizeCriterion.Type c : SizeCriterion.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SizeCriterion.Type valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null