Package de.xima.fc.common.text.wrap
Interface IShapingTextWrapperBuilder
-
- All Superinterfaces:
IShapingTextWrapperMutator<IShapingTextWrapperBuilder>
public interface IShapingTextWrapperBuilder extends IShapingTextWrapperMutator<IShapingTextWrapperBuilder>
Builder for ashaping
text wrapper
.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITextWrapper
buildThreadSafe()
Builds a thread-safetext wrapper
with the current settings.IMutableShapingTextWrapper
buildThreadUnsafe()
Builds a thread-unsafetext wrapper
with the current settings.IShapingTextWrapperBuilder
shaper(ITextShaper shaper)
Sets thetext shaper
to use for shaping the text.-
Methods inherited from interface de.xima.fc.common.text.wrap.IShapingTextWrapperMutator
breakAnywhereIfNeeded, ellipsis, intrinsicLineHeight, lineHeight, maxHeight, maxLines, maxWidth, trimLines
-
-
-
-
Method Detail
-
buildThreadSafe
ITextWrapper buildThreadSafe()
Builds a thread-safetext wrapper
with 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 wrapper
with 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
IShapingTextWrapperBuilder shaper(ITextShaper shaper)
Sets thetext shaper
to use for shaping the text.- Parameters:
shaper
- The text shaper to use.- Returns:
- This builder for chaining method calls.
-
-