Class ALspComplexStroke.PolylineBuilder

java.lang.Object
com.luciad.view.lightspeed.style.complexstroke.ALspComplexStroke.PolylineBuilder
Enclosing class:
ALspComplexStroke

public static class ALspComplexStroke.PolylineBuilder extends Object
Used to build polyline strokes. For more information, see ALspComplexStroke.polyline().
Since:
2013.1
  • Method Details

    • points

      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} )

      Parameters:
      aXs - the x-coordinates.
      aYs - the x-coordinates.
      Returns:
      this
    • relative

      public 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. The default is false.
      Parameters:
      aRelative - true if the point coordinates should be interpreted as pixel value, or as relative values.
      Returns:
      this
    • lineWidth

      public ALspComplexStroke.PolylineBuilder lineWidth(double aLineWidth)
      Sets the line width.
      Parameters:
      aLineWidth - the line width
      Returns:
      this
    • lineColor

      public ALspComplexStroke.PolylineBuilder lineColor(Color aLineColor)
      Sets the line color.
      Parameters:
      aLineColor - the line color.
      Returns:
      this
    • lineTexture

      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().

      Parameters:
      aTextureIcon - a texture icon
      Returns:
      this
    • build

      public ALspComplexStroke build()
      Returns a new polyline stroke
      Returns:
      a new polyline stroke