LuciadCPillar 2023.1.04
|
Creates a pattern with an arrow shape. More...
#include <luciad/layers/styles/complexstrokes/builders/ArrowPatternBuilder.h>
Public Member Functions | |
ComplexStrokePattern | build () |
Build the arrow pattern as configured. More... | |
ArrowPatternBuilder & | fillColor (Color color) |
Sets the fill color. More... | |
ArrowPatternBuilder & | forward (bool forward) |
If true, the arrow is oriented towards the end of the line. More... | |
ArrowPatternBuilder & | height (double height) |
The height of the arrow, in pixels. More... | |
ArrowPatternBuilder & | lineColor (Color color) |
Sets the line color. More... | |
ArrowPatternBuilder & | lineWidth (double lineWidth) |
Sets the line width. More... | |
ArrowPatternBuilder & | offset (double offset) |
The offset of the arrow, relative to the base line, in pixels. More... | |
ArrowPatternBuilder & | size (double size) |
The size (~length) of the arrow, in pixels. More... | |
ArrowPatternBuilder & | type (ComplexStrokePatternArrowType type) |
Sets the arrow's type. More... | |
Creates a pattern with an arrow shape.
ComplexStrokePattern luciad::ArrowPatternBuilder::build | ( | ) |
Build the arrow pattern as configured.
ArrowPatternBuilder & luciad::ArrowPatternBuilder::fillColor | ( | Color | color | ) |
Sets the fill color.
color | the arrow's fill color, defaults to white. |
ArrowPatternBuilder & luciad::ArrowPatternBuilder::forward | ( | bool | forward | ) |
If true, the arrow is oriented towards the end of the line.
Defaults to true.
forward | whether the arrow is oriented towards the end of the line. |
ArrowPatternBuilder & luciad::ArrowPatternBuilder::height | ( | double | height | ) |
The height of the arrow, in pixels.
Must be strictly greater than 0
. If it is not set, the arrow uses a default height, depending on the arrow type
.
height | the height of the arrow. |
luciad::InvalidArgumentException | height must be >0 . |
ArrowPatternBuilder & luciad::ArrowPatternBuilder::lineColor | ( | Color | color | ) |
Sets the line color.
color | the arrow's line color, defaults to black. |
ArrowPatternBuilder & luciad::ArrowPatternBuilder::lineWidth | ( | double | lineWidth | ) |
Sets the line width.
lineWidth | the line's width, defaults to 1 . |
luciad::InvalidArgumentException | lineWidth must be >0 . |
ArrowPatternBuilder & luciad::ArrowPatternBuilder::offset | ( | double | offset | ) |
The offset of the arrow, relative to the base line, in pixels.
Defaults to 0
.
offset | the offset of the arrow. |
ArrowPatternBuilder & luciad::ArrowPatternBuilder::size | ( | double | size | ) |
The size (~length) of the arrow, in pixels.
Defaults to 5
.
size | the size of the arrow. |
luciad::InvalidArgumentException | size must be >0 . |
ArrowPatternBuilder & luciad::ArrowPatternBuilder::type | ( | ComplexStrokePatternArrowType | type | ) |
Sets the arrow's type.
Defaults to ArrowType.RegularFilled.
type | the arrow's type. |