Enum Class FunctionType

java.lang.Object
java.lang.Enum<FunctionType>
org.jfree.pdf.function.FunctionType
All Implemented Interfaces:
Serializable, Comparable<FunctionType>, Constable

public enum FunctionType extends Enum<FunctionType>
The PDF function types. For the
invalid reference
PDFGraphics2D
class, only EXPONENTIAL_INTERPOLATION and STITCHING are used at present (to support gradient paint implementations).
  • Enum Constant Details

    • SAMPLED

      public static final FunctionType SAMPLED
      PDF function type 0.
    • EXPONENTIAL_INTERPOLATION

      public static final FunctionType EXPONENTIAL_INTERPOLATION
      PDF function type 2.
    • STITCHING

      public static final FunctionType STITCHING
      PDF function type 3.
    • POSTSCRIPT_CALCULATOR

      public static final FunctionType POSTSCRIPT_CALCULATOR
      PDF function type 4.
  • Field Details

    • number

      private final int number
      The PDF number for the function type.
  • Constructor Details

    • FunctionType

      private FunctionType(int number)
  • Method Details

    • values

      public static FunctionType[] 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

      public static FunctionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public int getNumber()
      Returns the PDF number for the function type.
      Returns:
      The PDF number.