Enum Class ImageView.Fit

java.lang.Object
java.lang.Enum<ImageView.Fit>
limn.components.ImageView.Fit
All Implemented Interfaces:
Serializable, Comparable<ImageView.Fit>, Constable
Enclosing class:
ImageView

public static enum ImageView.Fit extends Enum<ImageView.Fit>
  • Enum Constant Details

    • COVER

      public static final ImageView.Fit COVER
      Scale to fill the box, preserving aspect ratio; may crop.
    • CONTAIN

      public static final ImageView.Fit CONTAIN
      Scale to fit inside the box, preserving aspect ratio; may letterbox.
    • FILL

      public static final ImageView.Fit FILL
      Stretch to the box, ignoring aspect ratio.
    • NONE

      public static final ImageView.Fit NONE
      Natural pixel size (1px = 1 logical point), centered.
  • Method Details

    • values

      public static ImageView.Fit[] 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 ImageView.Fit 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