public enum ResizeStrategy extends Enum<ResizeStrategy>
| Enum Constant and Description |
|---|
CUSTOM_ZOOM
Custom fixed zoom
|
NO_RESIZE
The image is displayed in its original size.
|
RESIZE_TO_FIT
Shrink or enlarge the image to optimally fit the component (keeping aspect ratio).
|
SHRINK_TO_FIT
If the image doesn't fit in the component, it is shrunk to the best fit.
|
| Modifier and Type | Method and Description |
|---|---|
static ResizeStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResizeStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResizeStrategy NO_RESIZE
public static final ResizeStrategy SHRINK_TO_FIT
public static final ResizeStrategy RESIZE_TO_FIT
public static final ResizeStrategy CUSTOM_ZOOM
public static ResizeStrategy[] values()
for (ResizeStrategy c : ResizeStrategy.values()) System.out.println(c);
public static ResizeStrategy 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 © 2012. All Rights Reserved.