Class ALspComplexStroke.PolylineBuilder
java.lang.Object
com.luciad.view.lightspeed.style.complexstroke.ALspComplexStroke.PolylineBuilder
- Enclosing class:
ALspComplexStroke
Used to build polyline strokes. For more information, see
ALspComplexStroke.polyline()
.- Since:
- 2013.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a new polyline strokeSets the line color.lineTexture
(ILcdIcon aTextureIcon) Specifies an icon that is used to retrieve the line color.lineWidth
(double aLineWidth) Sets the line width.points
(double[] aXs, double[] aYs) Sets the points of the polyline.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.
-
Method Details
-
points
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} )
- Parameters:
aXs
- the x-coordinates.aYs
- the x-coordinates.- Returns:
this
-
relative
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. The default isfalse
.- Parameters:
aRelative
-true
if the point coordinates should be interpreted as pixel value, or as relative values.- 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
-
build
Returns a new polyline stroke- Returns:
- a new polyline stroke
-