Class TLspShapePaintingHints.Builder

java.lang.Object
com.luciad.view.lightspeed.painter.shape.TLspShapePaintingHints.Builder
Enclosing class:
TLspShapePaintingHints

public static class TLspShapePaintingHints.Builder extends Object
Builder for TLspShapePaintingHints objects.
Since:
2012.1
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public TLspShapePaintingHints build()
      Creates a new TLspShapePaintingHints instance with this builder's current settings.
      Returns:
      a new shape painting hints object
    • overlapResolution

      public TLspShapePaintingHints.Builder overlapResolution(ELspQualityHint aHint)
      Specifies whether the painter should take extra measures to correctly resolve overlaps between shapes that are both filled and outlined. For performance reasons, the default behavior is to sort objects by style. If a set of shapes have both a fill style and a line style, the painter will first draw all the fills, then all the outlines. For overlapping shapes, this can produce unexpected results. The following figure shows the actual result on the left, and what most users would logically expect on the right:

      One could use the Z order property of the styles to resolve such overlap artifacts, but this has a potentially large performance cost. Setting the overlap resolution hint to ELspQualityHint.NICEST will produce equivalent results with less overhead. The default setting is ELspQualityHint.AUTOMATIC.

      Parameters:
      aHint - the overlap resolution quality
      Returns:
      this