|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ScaleImageEnum> net.sf.jasperreports.engine.type.ScaleImageEnum
public enum ScaleImageEnum
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static ScaleImageEnum |
getByName(java.lang.String name)
|
static ScaleImageEnum |
getByValue(byte value)
|
static ScaleImageEnum |
getByValue(java.lang.Byte value)
|
java.lang.String |
getName()
|
byte |
getValue()
|
java.lang.Byte |
getValueByte()
|
static ScaleImageEnum |
valueOf(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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:
Renderable.getDimension(JasperReportsContext)
.JRImage.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.
Method Detail |
---|
public static ScaleImageEnum[] values()
for (ScaleImageEnum c : ScaleImageEnum.values()) System.out.println(c);
public static ScaleImageEnum 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.Byte getValueByte()
getValueByte
in interface JREnum
public final byte getValue()
getValue
in interface JREnum
public java.lang.String getName()
getName
in interface JREnum
public static ScaleImageEnum getByName(java.lang.String name)
public static ScaleImageEnum getByValue(java.lang.Byte value)
public static ScaleImageEnum getByValue(byte value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |