Class TLspShapePaintingHints.Builder
java.lang.Object
com.luciad.view.lightspeed.painter.shape.TLspShapePaintingHints.Builder
- Enclosing class:
TLspShapePaintingHints
Builder for
TLspShapePaintingHints
objects.- Since:
- 2012.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newTLspShapePaintingHints
instance with this builder's current settings.overlapResolution
(ELspQualityHint aHint) Specifies whether the painter should take extra measures to correctly resolve overlaps between shapes that are both filled and outlined.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Creates a newTLspShapePaintingHints
instance with this builder's current settings.- Returns:
- a new shape painting hints object
-
overlapResolution
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 toELspQualityHint.NICEST
will produce equivalent results with less overhead. The default setting isELspQualityHint.AUTOMATIC
.- Parameters:
aHint
- the overlap resolution quality- Returns:
this
-