Enum StrategyBasedLinearGradientBuilder.GradientStrategy

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

public static enum StrategyBasedLinearGradientBuilder.GradientStrategy extends Enum<StrategyBasedLinearGradientBuilder.GradientStrategy>
Specifies the predefined strategies
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Gradient vector from the middle of the top side to the middle of the bottom side
    Evaluates the gradient vector in such way that the first color would be painted at the top right corner, the last one - at the bottom left corner and the middle color line would pass through left corners
    Evaluates the gradient vector in such way that the first color would be painted at the top left corner, the last one - at the bottom right corner and the middle color line would pass through left corners
    Gradient vector from the middle of the right side to the middle of the left side
    Gradient vector from the middle of the left side to the middle of the right side
    Gradient vector from the middle of the bottom side to the middle of the top side
    Evaluates the gradient vector in such way that the first color would be painted at the bottom right corner, the last one - at the top left corner and the middle color line would pass through left corners
    Evaluates the gradient vector in such way that the first color would be painted at the bottom left corner, the last one - at the top right corner and the middle color line would pass through left corners
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Constructor Details

    • GradientStrategy

      private GradientStrategy()
  • 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 name
      NullPointerException - if the argument is null