AbstractBreaker.BlockSequence
public class BlockKnuthSequence extends KnuthSequence
Constructor | Description |
---|---|
BlockKnuthSequence() |
Creates a new and empty list.
|
BlockKnuthSequence(java.util.List list) |
Creates a new list from an existing list.
|
Modifier and Type | Method | Description |
---|---|---|
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?
|
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
appendSequenceOrClose, appendSequenceOrClose, getElement, getFirstBoxIndex, getLast, removeLast, startSequence, toString, wrapPositions
public BlockKnuthSequence()
public BlockKnuthSequence(java.util.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
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.