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
Represents the possible hint offset type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe absolute hint offset value on the target gradient valueNone hint offset specifiedThe relative hint offset value to the interval between the current gradient stop color and the next one.The relative hint offset value to the target coordinates vector. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static GradientColorStop.HintOffsetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE_ON_GRADIENT
The absolute hint offset value on the target gradient value -
RELATIVE_ON_GRADIENT
The relative hint offset value to the target coordinates vector. The0
value means the target vector start, the1
value means the target vector end. -
RELATIVE_BETWEEN_COLORS
The relative hint offset value to the interval between the current gradient stop color and the next one. -
NONE
None hint offset specified
-
-
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
-