public static class ALspComplexStroke.PolylineBuilder extends Object
ALspComplexStroke.polyline()
.Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
build()
Returns a new polyline stroke
|
ALspComplexStroke.PolylineBuilder |
lineColor(Color aLineColor)
Sets the line color.
|
ALspComplexStroke.PolylineBuilder |
lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color.
|
ALspComplexStroke.PolylineBuilder |
lineWidth(double aLineWidth)
Sets the line width.
|
ALspComplexStroke.PolylineBuilder |
points(double[] aXs,
double[] aYs)
Sets the points of the polyline.
|
ALspComplexStroke.PolylineBuilder |
relative(boolean aRelative)
Sets if the point coordinates point coordinates
should be interpreted as pixel values, or as coordinates relative ([0, 1]) to the length
of the entire line.
|
public ALspComplexStroke.PolylineBuilder points(double[] aXs, double[] aYs)
Sets the points of the polyline. Depending on relative(boolean)
, these coordinates
are interpreted as pixel value, or as coordinates relative ([0, 1]) to the length of the
entire line.
The coordinates are defined locally, so for example to define a line of length 10, the following coordinates can be used:
points( new double[] {0, 10}, new double[] {0, 0} )
aXs
- the x-coordinates.aYs
- the x-coordinates.this
public ALspComplexStroke.PolylineBuilder relative(boolean aRelative)
false
.aRelative
- true
if the point coordinates should be interpreted as pixel value,
or as relative values.this
public ALspComplexStroke.PolylineBuilder lineWidth(double aLineWidth)
aLineWidth
- the line widththis
public ALspComplexStroke.PolylineBuilder lineColor(Color aLineColor)
aLineColor
- the line color.this
public ALspComplexStroke.PolylineBuilder 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()