Creates a pattern with a rectangle shape.
More...
#include <luciad/layers/styles/complexstrokes/builders/RectanglePatternBuilder.h>
Creates a pattern with a rectangle shape.
- See also
ComplexStrokePatternFactory::rectangleBuilder()
- Since
- 2023.1
◆ build()
◆ fillColor()
Sets the fill color.
- Parameters
-
color | the fill color, by default there is no fill. |
- Returns
- this builder.
◆ fixedLength()
Set the length of the pattern in pixels.
The length cannot be both fixed and relative, if both methods are used, only the last one affects the result.
If no length is set, a 10 pixel fixed length will be used as default.
- Parameters
-
fixedLength | the length in pixels. |
- Returns
- this builder.
- Exceptions
-
◆ lineColor()
Sets the line color.
- Parameters
-
color | the line's color, defaults to black. |
- Returns
- this builder.
◆ lineWidth()
Sets the line width.
- Parameters
-
lineWidth | the line's width, defaults to 1 . |
- Returns
- this builder.
- Exceptions
-
◆ maxHeight()
Sets the maximum height of the rectangle, in pixels, relative to the base line.
This is typically a positive value.
- Parameters
-
maxHeight | the maximum height, defaults to 5 . |
- Returns
- this builder.
◆ minHeight()
Sets the minimum height of the rectangle, in pixels, relative to the base line.
This is typically a negative value.
- Parameters
-
minHeight | the minimum height, defaults to -5 . |
- Returns
- this builder.
◆ relativeLength()
Set the length of the pattern relative to the length of the entire line, as a value between 0
and 1
.
The length cannot be both fixed and relative, if both methods are used, only the last one affects the result.
If no length is set, a 10 pixel fixed length will be used as default.
- Parameters
-
relativeLength | a value in [0,1] . |
- Returns
- this builder.
- Exceptions
-