public static final class ALspComplexStroke.ParallelLineBuilder extends Object
ALspComplexStroke.parallelLine()
.Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
build()
Creates a new line stroke.
|
ALspComplexStroke.ParallelLineBuilder |
length(double aLengthFixed)
Sets the length of this stroke, in pixels.
|
ALspComplexStroke.ParallelLineBuilder |
lengthRelative(double aLengthRelative)
Sets the length of this stroke, as a value relative to the length of the line.
|
ALspComplexStroke.ParallelLineBuilder |
lineColor(Color aColor)
Sets the line color.
|
ALspComplexStroke.ParallelLineBuilder |
lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color.
|
ALspComplexStroke.ParallelLineBuilder |
lineWidth(double aLineWidth)
Sets the line width.
|
ALspComplexStroke.ParallelLineBuilder |
offset(double aOffset)
Sets the offset of the line from the base line.
|
public ALspComplexStroke.ParallelLineBuilder 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.ParallelLineBuilder 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.ParallelLineBuilder offset(double aOffset)
0
.aOffset
- the offset from the base linethis
public ALspComplexStroke.ParallelLineBuilder lineWidth(double aLineWidth)
1
.aLineWidth
- the line width.this
public ALspComplexStroke.ParallelLineBuilder lineColor(Color aColor)
black
.aColor
- the line colorthis
public ALspComplexStroke.ParallelLineBuilder 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 build()