Enum StrategyBasedRadialGradientBuilder.GradientStrategy

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

public static enum StrategyBasedRadialGradientBuilder.GradientStrategy extends Enum<StrategyBasedRadialGradientBuilder.GradientStrategy>
Specifies the predefined strategies
  • Enum Constant Details

    • CLOSEST_SIDE

      public static final StrategyBasedRadialGradientBuilder.GradientStrategy CLOSEST_SIDE
      Circle radius equal to the closest side distance from center, ellipse radii equal to the closest horizontal and vertical sides from center.
    • CLOSEST_CORNER

      public static final StrategyBasedRadialGradientBuilder.GradientStrategy CLOSEST_CORNER
      Circle radius equal to the closest corner distance from center, ellipse passes through the closest corner from center while radii aspect ratio is the same as for CLOSEST_SIDE strategy for ellipse.
    • FARTHEST_SIDE

      public static final StrategyBasedRadialGradientBuilder.GradientStrategy FARTHEST_SIDE
      Circle radius equal to the farthest side distance from center, ellipse radii equal to the farthest horizontal and vertical sides from center.
    • FARTHEST_CORNER

      public static final StrategyBasedRadialGradientBuilder.GradientStrategy FARTHEST_CORNER
      Circle radius equal to the farthest corner distance from center, ellipse passes through the farthest corner from center while radii aspect ratio is the same as for FARTHEST_SIDE strategy for ellipse.
  • 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