public class InlineKnuthSequence extends KnuthSequence
modCount
Constructor and Description |
---|
InlineKnuthSequence()
Creates a new and empty list.
|
InlineKnuthSequence(List list)
Creates a new list from an existing list.
|
Modifier and Type | Method and Description |
---|---|
void |
addALetterSpace()
Add letter space.
|
boolean |
appendSequence(KnuthSequence sequence)
Append sequence to this sequence if it can be appended.
|
boolean |
appendSequence(KnuthSequence sequence,
boolean keepTogether,
BreakElement breakElement)
Append sequence to this sequence if it can be appended.
|
boolean |
canAppendSequence(KnuthSequence sequence)
Can sequence be appended to this sequence?
|
KnuthSequence |
endSequence()
Finalizes a Knuth sequence.
|
boolean |
isInlineSequence()
Is this an inline or a block sequence?
|
appendSequenceOrClose, appendSequenceOrClose, getElement, getFirstBoxIndex, getLast, removeLast, startSequence, toString, wrapPositions
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public InlineKnuthSequence()
public InlineKnuthSequence(List list)
list
- The list from which to create the new list.public boolean isInlineSequence()
isInlineSequence
in class KnuthSequence
public boolean canAppendSequence(KnuthSequence sequence)
canAppendSequence
in class KnuthSequence
sequence
- The sequence that may be appended.public boolean appendSequence(KnuthSequence sequence)
appendSequence
in class KnuthSequence
sequence
- The sequence that is to be appended.public boolean appendSequence(KnuthSequence sequence, boolean keepTogether, BreakElement breakElement)
appendSequence
in class KnuthSequence
sequence
- The sequence that is to be appended.keepTogether
- Whether the two sequences must be kept together.breakElement
- The BreakElement that may be inserted between the two sequences.public KnuthSequence endSequence()
endSequence
in class KnuthSequence
public void addALetterSpace()
Copyright © 2022 Apache Software Foundation. All rights reserved.