public enum ThumbnailAspectMode extends Enum<ThumbnailAspectMode>
Enum Constant and Description |
---|
CROP
Specifies that the Cropping aspect mode is used when adapting to configured the width and height.
|
PAD
Specifies that the Padding aspect mode is used when adapting to configured the width and height.
|
STRETCH
Specifies that the Stretching aspect mode is used when adapting to configured the width and height.
|
Modifier and Type | Method and Description |
---|---|
static ThumbnailAspectMode |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static ThumbnailAspectMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThumbnailAspectMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThumbnailAspectMode PAD
public static final ThumbnailAspectMode CROP
public static final ThumbnailAspectMode STRETCH
public static ThumbnailAspectMode[] values()
for (ThumbnailAspectMode c : ThumbnailAspectMode.values()) System.out.println(c);
public static ThumbnailAspectMode 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 nullpublic String getValue()
public String toString()
toString
in class Enum<ThumbnailAspectMode>
public static ThumbnailAspectMode fromValue(String text)
Copyright © 2024. All rights reserved.