Class ALspComplexStroke.TriangleBuilder

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

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

    • p0

      public ALspComplexStroke.TriangleBuilder p0(double aX, double aY)
      Sets the first point of the triangle
      Parameters:
      aX - the x-coordinates of the first point of the triangle.
      aY - the y-coordinates of the first point of the triangle.
      Returns:
      this
    • p1

      public ALspComplexStroke.TriangleBuilder p1(double aX, double aY)
      Sets the second point of the triangle
      Parameters:
      aX - the x-coordinates of the second point of the triangle.
      aY - the y-coordinates of the second point of the triangle.
      Returns:
      this
    • p2

      public ALspComplexStroke.TriangleBuilder p2(double aX, double aY)
      Sets the third point of the triangle
      Parameters:
      aX - the x-coordinates of the third point of the triangle.
      aY - the y-coordinates of the third point of the triangle.
      Returns:
      this
    • relativeCoordinates

      public ALspComplexStroke.TriangleBuilder relativeCoordinates(boolean aRelative)
      When set to true, the coordinates defined in aXs will be interpreted as relative coordinates. I.e. coordinates defined relative to the length of the entire line (between [0, 1]).
      Parameters:
      aRelative - true to use relative coordinates
      Returns:
      this
    • fillColor

      public ALspComplexStroke.TriangleBuilder fillColor(Color aFillColor)
      Sets the fill color.
      Parameters:
      aFillColor - the fill color
      Returns:
      this
    • fillTexture

      public ALspComplexStroke.TriangleBuilder 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.

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

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

      public ALspComplexStroke.TriangleBuilder 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
    • lineWidth

      public ALspComplexStroke.TriangleBuilder lineWidth(double aLineWidth)
      Sets the line width. The default is 1.
      Parameters:
      aLineWidth - the line width.
      Returns:
      this
    • build

      public ALspComplexStroke build()
      Creates a new triangle stroke.
      Returns:
      a new triangle stroke.