Enum GradientColorStop.OffsetType
java.lang.Object
java.lang.Enum<GradientColorStop.OffsetType>
com.itextpdf.kernel.colors.gradients.GradientColorStop.OffsetType
- All Implemented Interfaces:
-
Serializable
,Comparable<GradientColorStop.OffsetType>
,java.lang.constant.Constable
- Enclosing class:
- GradientColorStop
Represents the possible offset type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GradientColorStop.OffsetType
Returns the enum constant of this type with the specified name.static GradientColorStop.OffsetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE
The absolute offset value from the target coordinates vector's start -
AUTO
The automatic offset evaluation. The offset value should be evaluated automatically based on the whole stop colors list specified for the gradient. The general auto offset logic should be the next: - find the previous and the next specified offset or hint offset values - the sublist of sequent auto offsets should spread evenly between the found values -
RELATIVE
The relative offset value to the target coordinates vector. The0
value means the target vector start, the1
value means the target vector end.
-
-
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
-