iText 8.0.5 API
|
The linear gradient builder with automatic coordinates vector evaluation for the target filled area based on configured strategy More...
Public Types |
|
enum | GradientStrategy { GradientStrategy.TO_BOTTOM, GradientStrategy.TO_BOTTOM_LEFT, GradientStrategy.TO_BOTTOM_RIGHT, GradientStrategy.TO_LEFT, GradientStrategy.TO_RIGHT, GradientStrategy.TO_TOP, GradientStrategy.TO_TOP_LEFT, GradientStrategy.TO_TOP_RIGHT } |
Specifies the predefined strategies More... |
|
Public Member Functions |
|
StrategyBasedLinearGradientBuilder () | |
Create a new instance of the builder More... |
|
virtual iText.Kernel.Colors.Gradients.StrategyBasedLinearGradientBuilder | SetGradientDirectionAsCentralRotationAngle (double radians) |
Set the strategy to use the minimal coordinates vector that passes through the central point of the target rectangle area, rotated by the specified amount of radians counter clockwise and covers the area to be filled. More... |
|
virtual iText.Kernel.Colors.Gradients.StrategyBasedLinearGradientBuilder | SetGradientDirectionAsStrategy (StrategyBasedLinearGradientBuilder.GradientStrategy gradientStrategy) |
Set the strategy to predefined one More... |
|
virtual double | GetRotateVectorAngle () |
Get the last set rotate vector angle More... |
|
virtual StrategyBasedLinearGradientBuilder.GradientStrategy | GetGradientStrategy () |
Get the last set predefined strategy More... |
|
virtual bool | IsCentralRotationAngleStrategy () |
Is the central rotation angle strategy was set last More... |
|
Public Member Functions inherited from iText.Kernel.Colors.Gradients.AbstractLinearGradientBuilder | |
virtual AbstractLinearGradientBuilder | AddColorStop (GradientColorStop gradientColorStop) |
Adds the new color stop to the end ( more info ). More... |
|
virtual AbstractLinearGradientBuilder | SetSpreadMethod (GradientSpreadMethod gradientSpreadMethod) |
Set the spread method to use for the gradient More... |
|
virtual IList< GradientColorStop > | GetColorStops () |
Get the copy of current color stops list. More... |
|
virtual GradientSpreadMethod | GetSpreadMethod () |
Get the current spread method More... |
|
virtual Color | BuildColor (Rectangle targetBoundingBox, AffineTransform contextTransform, PdfDocument document) |
Builds the iText.Kernel.Colors.Color object representing the linear gradient with specified configuration that fills the target bounding box. More... |
|
Package Functions |
|
override Point[] | GetGradientVector (Rectangle targetBoundingBox, AffineTransform contextTransform) |
Returns the base gradient vector in gradient vector space. More... |
|
Package Functions inherited from iText.Kernel.Colors.Gradients.AbstractLinearGradientBuilder | |
virtual AffineTransform | GetCurrentSpaceToGradientVectorSpaceTransformation (Rectangle targetBoundingBox, AffineTransform contextTransform) |
Returns the current space to gradient vector space transformations that should be applied to the shading color. More... |
|
Additional Inherited Members |
|
Static Package Functions inherited from iText.Kernel.Colors.Gradients.AbstractLinearGradientBuilder | |
static double[] | EvaluateCoveringDomain (Point[] coords, Rectangle toCover) |
Evaluates the minimal domain that covers the box with vector normals. More... |
|
static Point[] | CreateCoordinatesForNewDomain (double[] newDomain, Point[] baseVector) |
Expand the base vector to cover the new domain More... |
|
Static Package Attributes inherited from iText.Kernel.Colors.Gradients.AbstractLinearGradientBuilder | |
const double | ZERO_EPSILON = 1E-10 |
The epsilon value used for data creation More... |
|
The linear gradient builder with automatic coordinates vector evaluation for the target filled area based on configured strategy
Specifies the predefined strategies
|
inline |
Create a new instance of the builder
|
inlinevirtual |
Get the last set predefined strategy
|
inlinepackagevirtual |
Returns the base gradient vector in gradient vector space.
Returns the base gradient vector in gradient vector space. This vector would be set as shading coordinates vector and its length would be used to translate all color stops absolute offsets into the relatives.
targetBoundingBox | the rectangle to be covered by constructed color in current space |
contextTransform | the current canvas transformation |
Implements iText.Kernel.Colors.Gradients.AbstractLinearGradientBuilder.
|
inlinevirtual |
Get the last set rotate vector angle
|
inlinevirtual |
Is the central rotation angle strategy was set last
true
if the last strategy that has been set is a custom rotation angle
|
inlinevirtual |
Set the strategy to use the minimal coordinates vector that passes through the central point of the target rectangle area, rotated by the specified amount of radians counter clockwise and covers the area to be filled.
Set the strategy to use the minimal coordinates vector that passes through the central point of the target rectangle area, rotated by the specified amount of radians counter clockwise and covers the area to be filled. Zero angle corresponds to the vector from bottom to top.
radians | the radians value to rotate the coordinates vector |
|
inlinevirtual |
Set the strategy to predefined one
gradientStrategy | the strategy to set |