public static enum Matrix.ScaleToFit extends Enum<Matrix.ScaleToFit>
Enum Constant and Description |
---|
CENTER
Compute a scale that will maintain the original src aspect ratio,
but will also ensure that src fits entirely inside dst.
|
END
Compute a scale that will maintain the original src aspect ratio,
but will also ensure that src fits entirely inside dst.
|
FILL
Scale in X and Y independently, so that src matches dst exactly.
|
START
Compute a scale that will maintain the original src aspect ratio,
but will also ensure that src fits entirely inside dst.
|
Modifier and Type | Method and Description |
---|---|
static Matrix.ScaleToFit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Matrix.ScaleToFit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Matrix.ScaleToFit FILL
public static final Matrix.ScaleToFit START
public static final Matrix.ScaleToFit CENTER
public static final Matrix.ScaleToFit END
public static Matrix.ScaleToFit[] values()
for (Matrix.ScaleToFit c : Matrix.ScaleToFit.values()) System.out.println(c);
public static Matrix.ScaleToFit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null