public static class ALspComplexStroke.TextBuilder extends Object
ALspComplexStroke.text()
.Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
build()
Returns a new text stroke
|
ALspComplexStroke.TextBuilder |
offset(double aOffset)
Sets the offset, in pixels, of the text from the base line
|
ALspComplexStroke.TextBuilder |
rotateUp(boolean aRotateUp)
Sets if the text should be flipped when it is turned upside down.
|
ALspComplexStroke.TextBuilder |
text(String... aText)
Sets the text
|
ALspComplexStroke.TextBuilder |
text(String aText)
Sets the text
|
ALspComplexStroke.TextBuilder |
textStyle(TLspTextStyle aTextStyle)
Sets the text style to use.
|
public ALspComplexStroke.TextBuilder text(String aText)
aText
- the textthis
public ALspComplexStroke.TextBuilder text(String... aText)
aText
- the textthis
public ALspComplexStroke.TextBuilder rotateUp(boolean aRotateUp)
true
.aRotateUp
- true
to make sure the text is flipped when it is turned upside down,
false
otherwise.this
public ALspComplexStroke.TextBuilder offset(double aOffset)
aOffset
- the offset, in pixels, of the text from the base linethis
public ALspComplexStroke.TextBuilder textStyle(TLspTextStyle aTextStyle)
aTextStyle
- the text style to use.this
public ALspComplexStroke build()