public enum ImageScale extends Enum<ImageScale>
ImageScale class.
Enum Constant and Description |
---|
CLIP
A constant value specifying that if the actual image is larger than the image element size, it will be cut off so that it keeps its original resolution, and only the region that fits the
specified size will be displayed.
|
FILL
Deprecated.
|
FILL_FRAME
A constant value specifying that if the dimensions of the actual image do not fit those specified for the image element that displays it, the image can be forced to obey them and stretch itself
so that it fits in the designated output area.
|
FILL_PROPORTIONALLY
Deprecated.
|
NO_RESIZE
Deprecated.
|
REAL_HEIGHT
A scale image type that instructs the engine to stretch the image height to fit the actual height of the image.
|
REAL_SIZE
A scale image type that stretches the images height in the same way as
REAL_HEIGHT , and in addition it changes the image width to the actual with of the image. |
RETAIN_SHAPE
A constant value specifying that if the actual image does not fit into the image element, it can be adapted to those dimensions without needing to change its original proportions.
|
Modifier and Type | Method and Description |
---|---|
static ImageScale |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageScale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final ImageScale NO_RESIZE
@Deprecated public static final ImageScale FILL
@Deprecated public static final ImageScale FILL_PROPORTIONALLY
public static final ImageScale CLIP
public static final ImageScale FILL_FRAME
public static final ImageScale RETAIN_SHAPE
public static final ImageScale REAL_HEIGHT
public static final ImageScale REAL_SIZE
REAL_HEIGHT
, and in addition it changes the image width to the actual with of the image.public static ImageScale[] values()
for (ImageScale c : ImageScale.values()) System.out.println(c);
public static ImageScale 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 © 2010–2021. All rights reserved.