public enum ImageAlignment extends java.lang.Enum<ImageAlignment>
Enum Constant and Description |
---|
Bottom
The image is aligned to the bottom side of the layout rectangle.
|
Center
The image is centered within the layout rectangle.
|
Fit
The image is stretched to fit in the layout rectangle, but its original ratio is preserved.
|
Left
The image is aligned to the left side of the layout rectangle.
|
None
Same as
Center . |
Right
The image is aligned to the right side of the layout rectangle.
|
Stretch
The image is stretched.
|
Tile
The image is tiled across the layout rectangle.
|
Top
The image is aligned to the top side of the layout rectangle.
|
Modifier and Type | Method and Description |
---|---|
static ImageAlignment |
fromInt(int intVal) |
int |
getValue() |
static ImageAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageAlignment None
Center
.public static final ImageAlignment Left
public static final ImageAlignment Top
public static final ImageAlignment Right
public static final ImageAlignment Bottom
public static final ImageAlignment Center
public static final ImageAlignment Fit
public static final ImageAlignment Tile
public static final ImageAlignment Stretch
public static ImageAlignment[] values()
for (ImageAlignment c : ImageAlignment.values()) System.out.println(c);
public static ImageAlignment 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 nullpublic static ImageAlignment fromInt(int intVal)
public int getValue()