Enum Class ExcelPictureType
- All Implemented Interfaces:
Serializable,Comparable<ExcelPictureType>,Constable
Excel支持的图片类型枚举
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
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 ExcelPictureType获取图片类型intgetValue()获取类型编码static ExcelPictureTypeReturns the enum constant of this class with the specified name.static ExcelPictureType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMF
Extended windows meta file -
WMF
Windows Meta File -
PICT
Mac PICT format -
JPEG
JPEG format -
PNG
PNG format -
DIB
Device independent bitmap
-
-
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
-
getType
获取图片类型- Parameters:
imgFile- 图片文件- Returns:
- 图片类型,默认PNG
-
getValue
public int getValue()获取类型编码- Returns:
- 编码
-