Enum PNMOutputDevice.PNMType
- java.lang.Object
-
- java.lang.Enum<PNMOutputDevice.PNMType>
-
- com.levigo.jadice.server.ghostscript.PNMOutputDevice.PNMType
-
- All Implemented Interfaces:
Serializable
,Comparable<PNMOutputDevice.PNMType>
- Enclosing class:
- PNMOutputDevice
public static enum PNMOutputDevice.PNMType extends Enum<PNMOutputDevice.PNMType>
This enum determines the type of PNM that is generated.
-
-
Field Summary
Fields Modifier and Type Field Description String
deviceName
String
mimeType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PNMOutputDevice.PNMType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PNMOutputDevice.PNMType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PBM
public static final PNMOutputDevice.PNMType PBM
1-Bit portable bitmap format.
-
PGM
public static final PNMOutputDevice.PNMType PGM
8-Bit portable grayscale images.
-
PGN
public static final PNMOutputDevice.PNMType PGN
-
PNM
public static final PNMOutputDevice.PNMType PNM
-
PPM
public static final PNMOutputDevice.PNMType PPM
24-Bit pixmap format.
-
PKM
public static final PNMOutputDevice.PNMType PKM
Computes internally in CMYK, outputs PPM (RGB). (see GNU ghostscript'sgdevpbm.c
)
-
-
Method Detail
-
values
public static PNMOutputDevice.PNMType[] 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 (PNMOutputDevice.PNMType c : PNMOutputDevice.PNMType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PNMOutputDevice.PNMType 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
-
-