Enum Class ScaleByPixels.Mode

java.lang.Object
java.lang.Enum<ScaleByPixels.Mode>
is.galia.operation.ScaleByPixels.Mode
All Implemented Interfaces:
Serializable, Comparable<ScaleByPixels.Mode>, Constable
Enclosing class:
ScaleByPixels

public static enum ScaleByPixels.Mode extends Enum<ScaleByPixels.Mode>
  • Enum Constant Details

    • ASPECT_FIT_WIDTH

      public static final ScaleByPixels.Mode ASPECT_FIT_WIDTH
      Scale to fit the X axis inside a rectangle's X axis, maintaining aspect ratio.
    • ASPECT_FIT_HEIGHT

      public static final ScaleByPixels.Mode ASPECT_FIT_HEIGHT
      Scale to fit the Y axis inside a rectangle's Y axis, maintaining aspect ratio.
    • ASPECT_FIT_INSIDE

      public static final ScaleByPixels.Mode ASPECT_FIT_INSIDE
      Scale to fit entirely inside a rectangle, maintaining aspect ratio.
    • NON_ASPECT_FILL

      public static final ScaleByPixels.Mode NON_ASPECT_FILL
      Fill an arbitrary rectangle without regard to aspect ratio.
  • Method Details

    • values

      public static ScaleByPixels.Mode[] 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 ScaleByPixels.Mode 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