public class InlineKnuthSequence extends KnuthSequence
| Constructor and Description |
|---|
InlineKnuthSequence()
Creates a new and empty list.
|
InlineKnuthSequence(java.util.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, wrapPositionsadd, 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, trimToSizepublic InlineKnuthSequence()
public InlineKnuthSequence(java.util.List list)
list - The list from which to create the new list.public boolean isInlineSequence()
isInlineSequence in class KnuthSequencepublic boolean canAppendSequence(KnuthSequence sequence)
canAppendSequence in class KnuthSequencesequence - The sequence that may be appended.public boolean appendSequence(KnuthSequence sequence)
appendSequence in class KnuthSequencesequence - The sequence that is to be appended.public boolean appendSequence(KnuthSequence sequence, boolean keepTogether, BreakElement breakElement)
appendSequence in class KnuthSequencesequence - 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 KnuthSequencepublic void addALetterSpace()
Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.