Enum GradientColorStop.HintOffsetType

java.lang.Object
java.lang.Enum<GradientColorStop.HintOffsetType>
com.itextpdf.kernel.colors.gradients.GradientColorStop.HintOffsetType
All Implemented Interfaces:
Serializable, Comparable<GradientColorStop.HintOffsetType>, java.lang.constant.Constable
Enclosing class:
GradientColorStop

public static enum GradientColorStop.HintOffsetType extends Enum<GradientColorStop.HintOffsetType>
Represents the possible hint offset type
  • Enum Constant Details

    • ABSOLUTE_ON_GRADIENT

      public static final GradientColorStop.HintOffsetType ABSOLUTE_ON_GRADIENT
      The absolute hint offset value on the target gradient value
    • RELATIVE_ON_GRADIENT

      public static final GradientColorStop.HintOffsetType RELATIVE_ON_GRADIENT
      The relative hint offset value to the target coordinates vector. The 0 value means the target vector start, the 1 value means the target vector end.
    • RELATIVE_BETWEEN_COLORS

      public static final GradientColorStop.HintOffsetType RELATIVE_BETWEEN_COLORS
      The relative hint offset value to the interval between the current gradient stop color and the next one.
    • NONE

      public static final GradientColorStop.HintOffsetType NONE
      None hint offset specified
  • Method Details

    • values

      public static GradientColorStop.HintOffsetType[] 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

      public static GradientColorStop.HintOffsetType 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 name
      NullPointerException - if the argument is null