Package org.apache.fop.layoutmgr
Class BlockKnuthSequence
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.apache.fop.layoutmgr.KnuthSequence
org.apache.fop.layoutmgr.BlockKnuthSequence
- All Implemented Interfaces:
Serializable,Cloneable,Iterable,Collection,List,RandomAccess,SequencedCollection
- Direct Known Subclasses:
AbstractBreaker.BlockSequence
Represents a list of block level Knuth elements.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new and empty list.BlockKnuthSequence(List<KnuthSequence> list) Creates a new list from an existing list. -
Method Summary
Modifier and TypeMethodDescriptionbooleanappendSequence(KnuthSequence sequence) Append sequence to this sequence if it can be appended.booleanappendSequence(KnuthSequence sequence, boolean keepTogether, BreakElement breakElement) Append sequence to this sequence if it can be appended.booleancanAppendSequence(KnuthSequence sequence) Can sequence be appended to this sequence?Finalizes a Knuth sequence.booleanIs this an inline or a block sequence?Methods inherited from class org.apache.fop.layoutmgr.KnuthSequence
appendSequenceOrClose, appendSequenceOrClose, getElement, getFirstBoxIndex, getLast, removeLast, startSequence, toString, wrapPositionsMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
BlockKnuthSequence
public BlockKnuthSequence()Creates a new and empty list. -
BlockKnuthSequence
Creates a new list from an existing list.- Parameters:
list- The list from which to create the new list.
-
-
Method Details
-
isInlineSequence
public boolean isInlineSequence()Is this an inline or a block sequence?- Specified by:
isInlineSequencein classKnuthSequence- Returns:
- true if this is an inline sequence
-
canAppendSequence
Can sequence be appended to this sequence?- Specified by:
canAppendSequencein classKnuthSequence- Parameters:
sequence- The sequence that may be appended.- Returns:
- whether the sequence can be appended to this sequence.
-
appendSequence
Append sequence to this sequence if it can be appended.- Specified by:
appendSequencein classKnuthSequence- Parameters:
sequence- The sequence that is to be appended.- Returns:
- whether the sequence was succesfully appended to this sequence.
-
appendSequence
public boolean appendSequence(KnuthSequence sequence, boolean keepTogether, BreakElement breakElement) Append sequence to this sequence if it can be appended.- Specified by:
appendSequencein classKnuthSequence- Parameters:
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.- Returns:
- whether the sequence was succesfully appended to this sequence.
-
endSequence
Finalizes a Knuth sequence.- Specified by:
endSequencein classKnuthSequence- Returns:
- a finalized sequence.
-