public static final class ALspComplexStroke.LineBuilder extends Object
ALspComplexStroke.line()
and ALspComplexStroke.filledLine()
.Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
build()
Creates a new line stroke.
|
ALspComplexStroke.LineBuilder |
fillColor(Color aFillColor)
Sets the fill color.
|
ALspComplexStroke.LineBuilder |
fillTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the fill color.
|
ALspComplexStroke.LineBuilder |
length(double aLengthFixed)
Sets the length of this stroke, in pixels.
|
ALspComplexStroke.LineBuilder |
lengthRelative(double aLengthRelative)
Sets the length of this stroke, as a value relative to the length of the line.
|
ALspComplexStroke.LineBuilder |
lineColor(Color aLineColor)
Sets the line color.
|
ALspComplexStroke.LineBuilder |
lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color.
|
ALspComplexStroke.LineBuilder |
lineWidth(double aLineWidth)
Sets the line width.
|
ALspComplexStroke.LineBuilder |
offset(double aOffset0,
double aOffset1)
Sets the offsets of the first and second point of the line segment, relative to the base line.
|
ALspComplexStroke.LineBuilder |
offset0(double aOffset0)
Sets the the offset of the first point of the segment, relative to the base line.
|
ALspComplexStroke.LineBuilder |
offset1(double aOffset1)
Sets the offset of the second point of the segment, relative to the base line.
|
public ALspComplexStroke.LineBuilder length(double aLengthFixed)
10
. Note that when this
method is called, the value set using lengthRelative
is ignored.aLengthFixed
- the length of this stroke, in pixelsthis
public ALspComplexStroke.LineBuilder lengthRelative(double aLengthRelative)
0
. Note that when this method is called, the value set using
length
is ignored.aLengthRelative
- a length, defined relative ([0, 1]) to the length of the entire line,
representing the part of the line occupied by this gap.this
public ALspComplexStroke.LineBuilder offset0(double aOffset0)
0
.aOffset0
- the offset, relative to the base linethis
public ALspComplexStroke.LineBuilder offset1(double aOffset1)
0
.aOffset1
- the offset, relative to the base linethis
public ALspComplexStroke.LineBuilder offset(double aOffset0, double aOffset1)
offset0(double)
and offset1(double)
.aOffset0
- the offset of the first point, relative to the base lineaOffset1
- the offset of the second point, relative to the base linethis
public ALspComplexStroke.LineBuilder lineWidth(double aLineWidth)
1
.aLineWidth
- the line width.this
public ALspComplexStroke.LineBuilder lineColor(Color aLineColor)
aLineColor
- the line colorthis
public ALspComplexStroke.LineBuilder 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.LineBuilder fillColor(Color aFillColor)
aFillColor
- the fill colorpublic ALspComplexStroke.LineBuilder 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()
.
When using a textured fill along the entire stroked line, it may be useful to change the sharp angle threshold. This makes it possible to avoid gaps or overlapping regions between line segments.
aTextureIcon
- a texture iconthis
public ALspComplexStroke build()