|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Matrix.ScaleToFit>
android.graphics.Matrix.ScaleToFit
public static enum Matrix.ScaleToFit
Controlls how the src rect should align into the dst rect for setRectToRect().
| Enum Constant Summary | |
|---|---|
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. |
|
| Field Summary | |
|---|---|
(package private) int |
nativeInt
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Matrix.ScaleToFit FILL
public static final Matrix.ScaleToFit START
public static final Matrix.ScaleToFit CENTER
public static final Matrix.ScaleToFit END
| Field Detail |
|---|
final int nativeInt
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||