public static class ALspComplexStroke.ArrowBuilder extends Object
ALspComplexStroke.arrow()
.Modifier and Type | Class and Description |
---|---|
static class |
ALspComplexStroke.ArrowBuilder.ArrowType
The arrow type.
|
Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
build()
Returns a new arrow stroke
|
ALspComplexStroke.ArrowBuilder |
fillColor(Color aFillColor)
Sets the fill color
|
ALspComplexStroke.ArrowBuilder |
fillTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the fill color.
|
ALspComplexStroke.ArrowBuilder |
forward(boolean aForward)
Sets if the arrow should be oriented towards the end of the line.
|
ALspComplexStroke.ArrowBuilder |
height(double aHeight)
Sets the height of the arrow.
|
ALspComplexStroke.ArrowBuilder |
lineColor(Color aLineColor)
Sets the line color
|
ALspComplexStroke.ArrowBuilder |
lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color.
|
ALspComplexStroke.ArrowBuilder |
lineWidth(double aLineWidth)
Sets the line width
|
ALspComplexStroke.ArrowBuilder |
offset(double aOffset)
Sets the offset of the arrow from the base line.
|
ALspComplexStroke.ArrowBuilder |
size(double aSize)
Sets the arrow size
|
ALspComplexStroke.ArrowBuilder |
type(ALspComplexStroke.ArrowBuilder.ArrowType aType)
Sets the arrow type.
|
public ALspComplexStroke.ArrowBuilder type(ALspComplexStroke.ArrowBuilder.ArrowType aType)
aType
- the arrow typethis
public ALspComplexStroke.ArrowBuilder size(double aSize)
aSize
- the arrow sizethis
public ALspComplexStroke.ArrowBuilder height(double aHeight)
aHeight
- the height of the arrow.this
public ALspComplexStroke.ArrowBuilder offset(double aOffset)
0
.aOffset
- the offset from the base linethis
public ALspComplexStroke.ArrowBuilder forward(boolean aForward)
Sets if the arrow should be oriented towards the end of the line. The default
is true
.
aForward
- true
for arrows oriented towards the end of the line.this
public ALspComplexStroke.ArrowBuilder lineWidth(double aLineWidth)
aLineWidth
- the line widththis
public ALspComplexStroke.ArrowBuilder lineColor(Color aLineColor)
aLineColor
- the line colorthis
public ALspComplexStroke.ArrowBuilder lineTexture(ILcdIcon aTextureIcon)
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()
.
aTextureIcon
- a texture iconthis
public ALspComplexStroke.ArrowBuilder fillColor(Color aFillColor)
aFillColor
- the fill colorthis
public ALspComplexStroke.ArrowBuilder fillTexture(ILcdIcon aTextureIcon)
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()
.
aTextureIcon
- a texture iconthis
public ALspComplexStroke build()