Enum EPLImageType
- java.lang.Object
-
- java.lang.Enum<EPLImageType>
-
- com.helger.pdflayout.element.image.EPLImageType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EPLImageType>
public enum EPLImageType extends Enum<EPLImageType> implements com.helger.commons.id.IHasID<String>
Image type to use for rendering inPLImage,PLStreamImageetc.- Since:
- 5.0.1
- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EPLImageTypegetFromIDOrNull(String sID)StringgetID()static EPLImageTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EPLImageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CCITT
public static final EPLImageType CCITT
-
JPEG
public static final EPLImageType JPEG
-
LOSSLESS
public static final EPLImageType LOSSLESS
-
-
Method Detail
-
values
public static EPLImageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EPLImageType c : EPLImageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EPLImageType valueOf(String name)
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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static EPLImageType getFromIDOrNull(@Nullable String sID)
-
-