| Enum Constant and Description |
|---|
DEFAULT
Always resize by width x height, preserves aspect ratio.
|
FORCE
Always resize by width x height, ignores aspect ratio.
|
GREATER_THAN
Resize by width x height, only if one of the dimensions is larger than requested, preserves aspect ratio.
|
LESS_THAN
Resize by width x height, only if both of the dimensions are larger than requested, preserves aspect ratio.
|
PERCENT
Dimensions scaled by percentage.
|
| Modifier and Type | Method and Description |
|---|---|
static Resize |
getByName(java.lang.String value) |
static Resize |
getByOrdinal(int ord) |
java.lang.String |
getModifier() |
int |
getOrdinal() |
static Resize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Resize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resize DEFAULT
public static final Resize FORCE
public static final Resize LESS_THAN
public static final Resize GREATER_THAN
public static final Resize PERCENT
public static Resize[] values()
for (Resize c : Resize.values()) System.out.println(c);
public static Resize valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Resize getByName(java.lang.String value)
public static Resize getByOrdinal(int ord)
public java.lang.String getModifier()
public int getOrdinal()