Package org.apache.fop.layoutmgr
Class InlineKnuthSequence
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.apache.fop.layoutmgr.KnuthSequence
org.apache.fop.layoutmgr.InlineKnuthSequence
- All Implemented Interfaces:
Serializable,Cloneable,Iterable,Collection,List,RandomAccess
- Direct Known Subclasses:
LineLayoutManager.Paragraph
Represents a list of inline Knuth elements.
If closed, it represents all elements of a Knuth paragraph.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final longFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new and empty list.InlineKnuthSequence(List list) Creates a new list from an existing list. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd letter space.booleanappendSequence(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, 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, trimToSizeMethods inherited from class java.util.AbstractList
equals, hashCodeMethods 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, streamMethods inherited from interface java.util.List
containsAll, equals, hashCode
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
isClosed
private boolean isClosed
-
-
Constructor Details
-
InlineKnuthSequence
public InlineKnuthSequence()Creates a new and empty list. -
InlineKnuthSequence
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:
- false
-
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.
-
addALetterSpace
public void addALetterSpace()Add letter space.
-