Enum FunctionType
- All Implemented Interfaces:
Serializable, Comparable<FunctionType>, java.lang.constant.Constable
The PDF function types. For the
PDFGraphics2D class, only
EXPONENTIAL_INTERPOLATION and STITCHING are used at present
(to support gradient paint implementations).-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPDF function type 2.PDF function type 4.PDF function type 0.PDF function type 3. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the PDF number for the function type.static FunctionTypeReturns the enum constant of this type with the specified name.static FunctionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SAMPLED
PDF function type 0. -
EXPONENTIAL_INTERPOLATION
PDF function type 2. -
STITCHING
PDF function type 3. -
POSTSCRIPT_CALCULATOR
PDF function type 4.
-
-
Field Details
-
number
private final int numberThe PDF number for the function type.
-
-
Constructor Details
-
FunctionType
private FunctionType(int number)
-
-
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
-
getNumber
public int getNumber()Returns the PDF number for the function type.- Returns:
- The PDF number.
-