public enum ImageStyle extends java.lang.Enum<ImageStyle> implements ValueEnum
Enum Constant and Description |
---|
CENTER
Center (and don't stretch at all) the image if smaller than its enclosing frame.CENTER:"center",
|
NORMAL
Allow the image to have natural size
|
STRETCH
Stretch the image to the size of its enclosing frame.
|
TILE
Tile (repeat) the image if smaller than its enclosing frame.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static ImageStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageStyle CENTER
public static final ImageStyle TILE
public static final ImageStyle STRETCH
public static final ImageStyle NORMAL
public static ImageStyle[] values()
for (ImageStyle c : ImageStyle.values()) System.out.println(c);
public static ImageStyle 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 null