Class ALspComplexStroke.ArrowBuilder
- Enclosing class:
ALspComplexStroke
ALspComplexStroke.arrow()
.- Since:
- 2013.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The arrow type. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a new arrow strokeSets the fill colorfillTexture
(ILcdIcon aTextureIcon) Specifies an icon that is used to retrieve the fill color.forward
(boolean aForward) Sets if the arrow should be oriented towards the end of the line.height
(double aHeight) Sets the height of the arrow.Sets the line colorlineTexture
(ILcdIcon aTextureIcon) Specifies an icon that is used to retrieve the line color.lineWidth
(double aLineWidth) Sets the line widthoffset
(double aOffset) Sets the offset of the arrow from the base line.size
(double aSize) Sets the arrow sizeSets the arrow type.
-
Method Details
-
type
Sets the arrow type.- Parameters:
aType
- the arrow type- Returns:
this
-
size
Sets the arrow size- Parameters:
aSize
- the arrow size- Returns:
this
-
height
Sets the height of the arrow. If this property is not set, the arrow uses a default height, depending on the arrow type.- Parameters:
aHeight
- the height of the arrow.- Returns:
this
-
offset
Sets the offset of the arrow from the base line. The default is0
.- Parameters:
aOffset
- the offset from the base line- Returns:
this
-
forward
Sets if the arrow should be oriented towards the end of the line. The default is
true
.- Parameters:
aForward
-true
for arrows oriented towards the end of the line.- Returns:
this
-
lineWidth
Sets the line width- Parameters:
aLineWidth
- the line width- Returns:
this
-
lineColor
Sets the line color- Parameters:
aLineColor
- the line color- Returns:
this
-
lineTexture
Specifies an icon that is used to retrieve the line color. This texture icon is sampled in view space, i.e. one pixel of the icon corresponds with one pixel on the screen. If a line color is set as well, that color is used as a modulation color. For best results, the given icon should be tileable, see for example
TLcdGXYHatchedFillStyle.asIcon()
.- Parameters:
aTextureIcon
- a texture icon- Returns:
this
-
fillColor
Sets the fill color- Parameters:
aFillColor
- the fill color- Returns:
this
-
fillTexture
Specifies an icon that is used to retrieve the fill color. This texture icon is sampled in view space, i.e. one pixel of the icon corresponds with one pixel on the screen. If a fill color is set as well, that color is used as a modulation color. For best results, the given icon should be tileable, see for example
TLcdGXYHatchedFillStyle.asIcon()
.- Parameters:
aTextureIcon
- a texture icon- Returns:
this
-
build
Returns a new arrow stroke- Returns:
- a new arrow stroke
-