Enum StrategyBasedLinearGradientBuilder.GradientStrategy
- java.lang.Object
-
- java.lang.Enum<StrategyBasedLinearGradientBuilder.GradientStrategy>
-
- com.itextpdf.kernel.colors.gradients.StrategyBasedLinearGradientBuilder.GradientStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StrategyBasedLinearGradientBuilder.GradientStrategy>
- Enclosing class:
- StrategyBasedLinearGradientBuilder
public static enum StrategyBasedLinearGradientBuilder.GradientStrategy extends java.lang.Enum<StrategyBasedLinearGradientBuilder.GradientStrategy>
Specifies the predefined strategies
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TO_BOTTOM
Gradient vector from the middle of the top side to the middle of the bottom sideTO_BOTTOM_LEFT
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 cornersTO_BOTTOM_RIGHT
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 cornersTO_LEFT
Gradient vector from the middle of the right side to the middle of the left sideTO_RIGHT
Gradient vector from the middle of the left side to the middle of the right sideTO_TOP
Gradient vector from the middle of the bottom side to the middle of the top sideTO_TOP_LEFT
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 cornersTO_TOP_RIGHT
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
GradientStrategy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StrategyBasedLinearGradientBuilder.GradientStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StrategyBasedLinearGradientBuilder.GradientStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TO_BOTTOM
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_BOTTOM
Gradient vector from the middle of the top side to the middle of the bottom side
-
TO_BOTTOM_LEFT
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_BOTTOM_LEFT
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
-
TO_BOTTOM_RIGHT
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_BOTTOM_RIGHT
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
-
TO_LEFT
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_LEFT
Gradient vector from the middle of the right side to the middle of the left side
-
TO_RIGHT
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_RIGHT
Gradient vector from the middle of the left side to the middle of the right side
-
TO_TOP
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_TOP
Gradient vector from the middle of the bottom side to the middle of the top side
-
TO_TOP_LEFT
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_TOP_LEFT
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
-
TO_TOP_RIGHT
public static final StrategyBasedLinearGradientBuilder.GradientStrategy TO_TOP_RIGHT
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
-
-
Method Detail
-
values
public static StrategyBasedLinearGradientBuilder.GradientStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StrategyBasedLinearGradientBuilder.GradientStrategy c : StrategyBasedLinearGradientBuilder.GradientStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StrategyBasedLinearGradientBuilder.GradientStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-