Package org.apache.poi.common.usermodel
Enum PictureType
- All Implemented Interfaces:
Serializable,Comparable<PictureType>,java.lang.constant.Constable
General enum class to define a picture format/type
- Since:
- POI 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWindows Bitmap (.bmp)client defined blip type - native-id 32 to 255JPEG in the YCCK or CMYK color space.Device independent bitmapExtended windows meta fileEncapsulated Postscript (.eps)Picture type error - specific to escher bse recordGIF image formatJPEG formatMac PICT formatPNG formatScalable vector graphics (.svg) - supported by Office 2016 and higherTag Image File (.tiff)Unknown picture type - specific to escher bse recordMicrosoft Windows Media Photo image (.wdp)Windows Meta FileWordPerfect graphics (.wpg) -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PictureTypefindByOoxmlId(int ooxmlId) intstatic PictureTypeReturns the enum constant of this type with the specified name.static PictureTypeReturns the enum constant of this type with the specified name.static PictureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
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 -
GIF
GIF image format -
TIFF
Tag Image File (.tiff) -
EPS
Encapsulated Postscript (.eps) -
BMP
Windows Bitmap (.bmp) -
WPG
WordPerfect graphics (.wpg) -
WDP
Microsoft Windows Media Photo image (.wdp) -
SVG
Scalable vector graphics (.svg) - supported by Office 2016 and higher -
UNKNOWN
Unknown picture type - specific to escher bse record -
ERROR
Picture type error - specific to escher bse record -
CMYKJPEG
JPEG in the YCCK or CMYK color space. -
CLIENT
client defined blip type - native-id 32 to 255
-
-
Field Details
-
contentType
-
extension
-
ooxmlId
public final int ooxmlId
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getContentType
-
getExtension
-
getOoxmlId
public int getOoxmlId() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
fm- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
findByOoxmlId
- Parameters:
ooxmlId- for PictureType- Returns:
- PictureType, null if ooxmlId does not match any PictureTypes
-