Package org.fxmisc.richtext.model
Class StyleSpansBuilder<S>
- java.lang.Object
-
- org.fxmisc.richtext.model.StyleSpansBuilder<S>
-
- Type Parameters:
S
- the segment style type
public class StyleSpansBuilder<S> extends Object
A one-time-use builder that Builds a memory efficientStyleSpans
object.
-
-
Constructor Summary
Constructors Constructor Description StyleSpansBuilder()
StyleSpansBuilder(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyleSpansBuilder<S>
add(StyleSpan<S> styleSpan)
StyleSpansBuilder<S>
add(S style, int length)
StyleSpansBuilder<S>
addAll(Iterable<? extends StyleSpan<S>> styleSpans)
StyleSpansBuilder<S>
addAll(Iterable<? extends StyleSpan<S>> styleSpans, int sizeHint)
StyleSpansBuilder<S>
addAll(Collection<? extends StyleSpan<S>> styleSpans)
StyleSpansBuilder<S>
addAll(Iterator<? extends StyleSpan<S>> styleSpans)
StyleSpans<S>
create()
-
-
-
Method Detail
-
add
public StyleSpansBuilder<S> add(StyleSpan<S> styleSpan)
-
add
public StyleSpansBuilder<S> add(S style, int length)
-
addAll
public StyleSpansBuilder<S> addAll(Collection<? extends StyleSpan<S>> styleSpans)
-
addAll
public StyleSpansBuilder<S> addAll(Iterable<? extends StyleSpan<S>> styleSpans, int sizeHint)
-
addAll
public StyleSpansBuilder<S> addAll(Iterable<? extends StyleSpan<S>> styleSpans)
-
addAll
public StyleSpansBuilder<S> addAll(Iterator<? extends StyleSpan<S>> styleSpans)
-
create
public StyleSpans<S> create()
-
-