Interface IShapingTextWrapperBuilder
- All Superinterfaces:
IShapingTextWrapperMutator<IShapingTextWrapperBuilder>
public interface IShapingTextWrapperBuilder
extends IShapingTextWrapperMutator<IShapingTextWrapperBuilder>
Builder for a
shaping text wrapper.- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescriptionBuilds a thread-safetext wrapperwith the current settings.Builds a thread-unsafetext wrapperwith the current settings.shaper(ITextShaper shaper) Sets thetext shaperto use for shaping the text.Methods inherited from interface IShapingTextWrapperMutator
breakAnywhereIfNeeded, ellipsis, intrinsicLineHeight, lineHeight, maxHeight, maxLines, maxWidth, trimLines
-
Method Details
-
buildThreadSafe
ITextWrapper buildThreadSafe()Builds a thread-safetext wrapperwith the current settings. The returned text wrapper is thread-safe and can be used in a multi-threaded environment.- Returns:
- The thread-safe text wrapper.
-
buildThreadUnsafe
IMutableShapingTextWrapper buildThreadUnsafe()Builds a thread-unsafetext wrapperwith the current settings. The returned text wrapper is not thread-safe and must be synchronized externally if needed. In exchange, it might perform better.- Returns:
- The thread-unsafe text wrapper.
-
shaper
Sets thetext shaperto use for shaping the text.- Parameters:
shaper- The text shaper to use.- Returns:
- This builder for chaining method calls.
-