Package com.grapecity.documents.excel
Enum Class BackgroundImageLayout
- All Implemented Interfaces:
Serializable,Comparable<BackgroundImageLayout>,Constable
指定如何拉伸背景图像以填充目标矩形。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BackgroundImageLayout根据指定的整数值获取对应的枚举常量。intgetValue()获取表示枚举常量的整数值。static BackgroundImageLayoutReturns the enum constant of this class with the specified name.static BackgroundImageLayout[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Stretch
指定调整图像大小以填充目标尺寸。宽高比不会被保持。 -
Center
指定在目标矩形内将图像居中对齐。 -
Zoom
指定调整图像大小以适应目标尺寸,同时保持图像的原始宽高比。 -
None
指定将图像左对齐并显示在目标矩形的顶部。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()获取表示枚举常量的整数值。- Returns:
- 枚举常量的序数值。
-
forValue
根据指定的整数值获取对应的枚举常量。- Parameters:
value- 表示枚举常量的整数值。- Returns:
- BackgroundImageLayout 枚举常量。
-