public static enum Scale.Mode extends Enum<Scale.Mode>
| Enum Constant and Description |
|---|
HEIGHT
指定高度,宽度按比例
|
OPTIONAL
自定义高度和宽度,强制缩放
|
ORIGIN
原始比例,不缩放
|
WIDTH
指定宽度,高度按比例
|
| Modifier and Type | Method and Description |
|---|---|
static Scale.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scale.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scale.Mode ORIGIN
public static final Scale.Mode WIDTH
public static final Scale.Mode HEIGHT
public static final Scale.Mode OPTIONAL
public static Scale.Mode[] values()
for (Scale.Mode c : Scale.Mode.values()) System.out.println(c);
public static Scale.Mode 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 nullCopyright © 2021. All rights reserved.