public enum ScaleImageEnum extends Enum<ScaleImageEnum> implements JREnum
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_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.
|
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 ScaleImageEnum |
getByName(String name) |
static ScaleImageEnum |
getByValue(byte value)
Deprecated.
Used only by deprecated serialized fields.
|
static ScaleImageEnum |
getByValue(Byte value)
Deprecated.
Used only by deprecated serialized fields.
|
String |
getName() |
byte |
getValue()
Deprecated.
Used only by deprecated serialized fields.
|
Byte |
getValueByte()
Deprecated.
Used only by deprecated serialized fields.
|
static ScaleImageEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScaleImageEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScaleImageEnum CLIP
public static final ScaleImageEnum FILL_FRAME
public static final ScaleImageEnum RETAIN_SHAPE
public static final ScaleImageEnum REAL_HEIGHT
Several restrictions apply to the image stretching mechanism:
DimensionRenderable
.JREvaluation.getEvaluationTimeValue()
)
do not stretch and is proportionally shrunk to fit the declared
height/width.REAL_SIZE
public static final ScaleImageEnum REAL_SIZE
REAL_HEIGHT
, and in addition it changes the image
width to the actual with of the image.
This can be useful when, for instance, a border has to be drawn around
the image, respecting its actual size.public static ScaleImageEnum[] values()
for (ScaleImageEnum c : ScaleImageEnum.values()) System.out.println(c);
public static ScaleImageEnum 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 nullpublic Byte getValueByte()
getValueByte
in interface JREnum
public final byte getValue()
public static ScaleImageEnum getByName(String name)
public static ScaleImageEnum getByValue(Byte value)
public static ScaleImageEnum getByValue(byte value)
Copyright © 2016. All rights reserved.