LuciadCPillar 2023.1.04
|
Creates a pattern containing text. More...
#include <luciad/layers/styles/complexstrokes/builders/TextPatternBuilder.h>
Public Member Functions | |
ComplexStrokePattern | build () |
Build the text pattern as configured. More... | |
TextPatternBuilder & | offset (double offset) |
Sets the offset of the text, relative to the base line, in pixels. More... | |
TextPatternBuilder & | rotateUp (bool rotateUp) |
Indicates if the text should be flipped when it is turned upside down. More... | |
TextPatternBuilder & | text (std::string text) |
Sets the text as a single line. More... | |
TextPatternBuilder & | text (std::vector< std::string > text) |
Sets multiple lines of text, with each element being a separate line. More... | |
TextPatternBuilder & | textStyle (TextStyle textStyle) |
Sets the style of the text. More... | |
ComplexStrokePattern luciad::TextPatternBuilder::build | ( | ) |
Build the text pattern as configured.
luciad::LogicException | when the text has not been set. |
TextPatternBuilder & luciad::TextPatternBuilder::offset | ( | double | offset | ) |
Sets the offset of the text, relative to the base line, in pixels.
Defaults to 0
.
offset | the offset of the text. |
TextPatternBuilder & luciad::TextPatternBuilder::rotateUp | ( | bool | rotateUp | ) |
Indicates if the text should be flipped when it is turned upside down.
Defaults to true.
rotateUp | if the text should be flipped when it is turned upside down. |
TextPatternBuilder & luciad::TextPatternBuilder::text | ( | std::string | text | ) |
Sets the text as a single line.
text | the text to be displayed. |
TextPatternBuilder & luciad::TextPatternBuilder::text | ( | std::vector< std::string > | text | ) |
Sets multiple lines of text, with each element being a separate line.
text | the text to be displayed. May not be empty. |
luciad::InvalidArgumentException | text may not be empty. |
TextPatternBuilder & luciad::TextPatternBuilder::textStyle | ( | TextStyle | textStyle | ) |
Sets the style of the text.
textStyle | the style of the text. |