Package org.apache.fop.layoutmgr
Class InlineKnuthSequence
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList
-
- org.apache.fop.layoutmgr.KnuthSequence
-
- org.apache.fop.layoutmgr.InlineKnuthSequence
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable,java.util.Collection,java.util.List,java.util.RandomAccess
public class InlineKnuthSequence extends KnuthSequence
Represents a list of inline Knuth elements. If closed, it represents all elements of a Knuth paragraph.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineKnuthSequence()Creates a new and empty list.InlineKnuthSequence(java.util.List list)Creates a new list from an existing list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddALetterSpace()Add 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?KnuthSequenceendSequence()Finalizes a Knuth sequence.booleanisInlineSequence()Is this an inline or a block sequence?-
Methods inherited from class org.apache.fop.layoutmgr.KnuthSequence
appendSequenceOrClose, appendSequenceOrClose, getElement, getFirstBoxIndex, getLast, removeLast, startSequence, toString, wrapPositions
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
isInlineSequence
public boolean isInlineSequence()
Is this an inline or a block sequence?- Specified by:
isInlineSequencein classKnuthSequence- Returns:
- false
-
canAppendSequence
public boolean canAppendSequence(KnuthSequence sequence)
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
public boolean appendSequence(KnuthSequence sequence)
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
public KnuthSequence endSequence()
Finalizes a Knuth sequence.- Specified by:
endSequencein classKnuthSequence- Returns:
- a finalized sequence.
-
addALetterSpace
public void addALetterSpace()
Add letter space.
-
-