Class GradientPropertiesResolver
java.lang.Object
com.itextpdf.kernel.colors.gradients.GradientPropertiesResolver
This resolver is used during the layout process to prevent infinite loops.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault max color stops. -
Constructor Summary
ConstructorsConstructorDescriptionCreates default instance ofGradientPropertiesResolver.GradientPropertiesResolver(int maxColorStops) CreatesGradientPropertiesResolverinstance. -
Method Summary
Modifier and TypeMethodDescriptionintGets maximum color stops for repeat and reflect spreading.
-
Field Details
-
DEFAULT_MAX_COLOR_STOPS
public static final int DEFAULT_MAX_COLOR_STOPSDefault max color stops.- See Also:
-
-
Constructor Details
-
GradientPropertiesResolver
public GradientPropertiesResolver()Creates default instance ofGradientPropertiesResolver. -
GradientPropertiesResolver
public GradientPropertiesResolver(int maxColorStops) CreatesGradientPropertiesResolverinstance.This resolver is used for gradient creation.
- Parameters:
-
maxColorStops- max color stops for repeat and reflect (seegetMaxColorStops()
-
-
Method Details
-
getMaxColorStops
public int getMaxColorStops()Gets maximum color stops for repeat and reflect spreading.This property defines the maximum amount of color stops to be created for repeat and reflect spreading of colors in gradients.
- Returns:
- maximum color stops for repeat and reflect
-