public static enum Image.ScaleMode extends java.lang.Enum<Image.ScaleMode>
Enum Constant and Description |
---|
CONTAIN
The image will be compressed or stretched to the minimum measurement of the component while preserving the
proportions.
|
FILL
The image will be stretched according to the size of the component.
|
NONE
The image will have a real size.
|
SCALE_DOWN
The content changes size by comparing the difference between NONE and CONTAIN, in order to find the smallest
concrete size of the object.
|
Modifier and Type | Method and Description |
---|---|
static Image.ScaleMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Image.ScaleMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Image.ScaleMode FILL
public static final Image.ScaleMode CONTAIN
public static final Image.ScaleMode SCALE_DOWN
public static final Image.ScaleMode NONE
public static Image.ScaleMode[] values()
for (Image.ScaleMode c : Image.ScaleMode.values()) System.out.println(c);
public static Image.ScaleMode 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