Class TLspVerticalLineStyle.Builder<B extends TLspVerticalLineStyle.Builder<B>>

java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.TLspVerticalLineStyle.Builder<B>
Enclosing class:
TLspVerticalLineStyle

public static class TLspVerticalLineStyle.Builder<B extends TLspVerticalLineStyle.Builder<B>> extends ALspStyle.Builder<B>
Builder for vertical line styles. The default vertical line style is a white 1-pixel wide line.

Example usages:

To create the default line style:
TLspLineStyle whiteOnePixel = TLspLineStyle.newBuilder().build();
To create a 4-pixel wide red line style:
TLspLineStyle redFourPixels = TLspLineStyle.newBuilder().color(Color.red).lineWidth(4f).build();

Since:
2012.0
  • Constructor Details Link icon

    • Builder Link icon

      protected Builder()
  • Method Details Link icon

    • color Link icon

      public B color(Color aColor)
      Sets the color. Should not be null.
      Parameters:
      aColor - the color
      Returns:
      this
      Throws:
      IllegalArgumentException - if aColor==null
    • opacity Link icon

      public B opacity(float aOpacity)
      Sets the opacity (alpha) value for the color.

      This is a convenience method: One could equally well use the color(...) method. However, this method leaves the RGB values intact and only modifies the alpha value. Note that, the other way around, the color(...) method does override the set alpha value.

      Parameters:
      aOpacity - the alpha value. Must be contained in the [0,1] interval (0 is fully transparent, 1 is fully opaque).
      Returns:
      this
    • width Link icon

      public B width(float aLineWidth)
      Sets the line width (pixels). Should be greater than 0.
      Parameters:
      aLineWidth - the line width
      Returns:
      this
    • all Link icon

      public B all(ALspStyle aColorStyle)
      Description copied from class: ALspStyle.Builder
      Sets all parameters on the builder based on the given style.

      This is useful for example to create a new style that has almost all properties equal to another style.

      Specified by:
      all in class ALspStyle.Builder<B extends TLspVerticalLineStyle.Builder<B>>
      Parameters:
      aColorStyle - the style to copy
      Returns:
      this
    • build Link icon

      public TLspVerticalLineStyle build()
      Description copied from class: ALspStyle.Builder
      Builds the style with the set parameters.
      Specified by:
      build in class ALspStyle.Builder<B extends TLspVerticalLineStyle.Builder<B>>
      Returns:
      the resulting style
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object