Class TLcdStrokeLineStyleBuilder

java.lang.Object
com.luciad.view.gxy.TLcdStrokeLineStyleBuilder

public class TLcdStrokeLineStyleBuilder extends Object
This line style builder makes it possible to create pre-defined stroke based line styles. This class can be used by first setting the required line style properties and then creating the line style by calling build(). This builder is the same as TLcdStrokeLineStyle.Builder.
Since:
11.0
See Also:
  • Constructor Details

    • TLcdStrokeLineStyleBuilder

      public TLcdStrokeLineStyleBuilder()
  • Method Details

    • build

      public TLcdStrokeLineStyle build()
      Creates a new line style using the configured settings. By default the line style is a solid line style.
      Returns:
      a new line style using the configured settings.
      See Also:
    • color

      public TLcdStrokeLineStyleBuilder color(Color aColor)
      Sets the default color.
      Parameters:
      aColor - the default line color.
      Returns:
      this TLcdStrokeLineStyleBuilder
    • selectionColor

      public TLcdStrokeLineStyleBuilder selectionColor(Color aColor)
      Sets the selection color.
      Parameters:
      aColor - the selection line color.
      Returns:
      this TLcdStrokeLineStyleBuilder
    • antiAliasing

      public TLcdStrokeLineStyleBuilder antiAliasing(boolean aAntiAliasing)
      Sets whether to use anti-aliasing when painting.
      Parameters:
      aAntiAliasing - if true, uses anti-aliasing when painting
      Returns:
      this TLcdStrokeLineStyleBuilder
    • lineWidth

      public TLcdStrokeLineStyleBuilder lineWidth(float aLineWidth)
      Sets the line width of the painted lines, in pixels.
      Parameters:
      aLineWidth - the line width of the painted lines.
      Returns:
      this TLcdStrokeLineStyleBuilder
    • cap

      Sets how lines are ended.
      Parameters:
      aCap - describes how the lines are ended
      Returns:
      this builder
    • join

      Sets how line segments are joined.
      Parameters:
      aJoin - describes how the line segments are joined
      Returns:
      this builder
    • solidLineStyle

      public TLcdStrokeLineStyleBuilder solidLineStyle()
      When calling this method, the created line style will produce solid lines. The width of the lines can be configured using lineWidth(float).
      Returns:
      this TLcdStrokeLineStyleBuilder
    • dottedLineStyle

      public TLcdStrokeLineStyleBuilder dottedLineStyle()
      When calling this method, the created line style will produced dotted lines, i.e. the width and height of each dash is equal. The size of the dot will be determined by the line width.
      Returns:
      this TLcdStrokeLineStyleBuilder
      See Also:
    • dottedLineStyle

      public TLcdStrokeLineStyleBuilder dottedLineStyle(float aSpaceLength)
      When calling this method, the created line style will produce dotted lines, i.e. the width and height of each dash is equal. The size of the dot will be determined by the line width. The length of the space between each dot is determined by aSpaceLength.
      Parameters:
      aSpaceLength - the length of the space between the dots.
      Returns:
      this TLcdStrokeLineStyleBuilder
      See Also:
    • dashedLineStyle

      public TLcdStrokeLineStyleBuilder dashedLineStyle()
      When calling this method, the created line style will produce dashed lines. The length of each dash will be 4 pixels. The length of the space between each dash will also be 4 pixels. The line width is determined by lineWidth(float)
      Returns:
      this TLcdStrokeLineStyleBuilder
      See Also:
    • dashedLineStyle

      public TLcdStrokeLineStyleBuilder dashedLineStyle(float aDashLength)
      When calling this method, the created line style will produce dashed lines. The length of each dash is determined by aDashLength. The length of the space between each dash equals the length of the dashes itself. The line width is determined by lineWidth(float).
      Parameters:
      aDashLength - the length of each dash, and the length of the space between the dashes, in pixels.
      Returns:
      this TLcdStrokeLineStyleBuilder
      See Also:
    • dashedLineStyle

      public TLcdStrokeLineStyleBuilder dashedLineStyle(float aDashLength, float aSpaceLength)
      When calling this method, the created line style will produce dashed lines. The length of each dash is determined by aDashLength. The length of the space between each dash is determined by aSpaceLength. The line width is determined by lineWidth(float).
      Parameters:
      aDashLength - the length of each dash, in pixels.
      aSpaceLength - the length of the space between the dashes, in pixels.
      Returns:
      this TLcdStrokeLineStyleBuilder
      See Also: