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:
- java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable
- 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
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
InlineKnuthSequence
public InlineKnuthSequence()
- Creates a new and empty list.
InlineKnuthSequence
public InlineKnuthSequence(java.util.List list)
- Creates a new list from an existing list.
- Parameters:
list
- The list from which to create the new list.
isInlineSequence
public boolean isInlineSequence()
- Is this an inline or a block sequence?
- Overrides:
isInlineSequence
in class KnuthSequence
- Returns:
- false
canAppendSequence
public boolean canAppendSequence(KnuthSequence sequence)
- Description copied from class:
KnuthSequence
- Can sequence be appended to this sequence?
- Overrides:
canAppendSequence
in class KnuthSequence
- Following copied from class:
org.apache.fop.layoutmgr.KnuthSequence
- Parameters:
sequence
- The sequence that may be appended.- Returns:
- whether the sequence can be appended to this sequence.
appendSequence
public boolean appendSequence(KnuthSequence sequence)
- Description copied from class:
KnuthSequence
- Append sequence to this sequence if it can be appended.
- Overrides:
appendSequence
in class KnuthSequence
- Following copied from class:
org.apache.fop.layoutmgr.KnuthSequence
- 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)
- Description copied from class:
KnuthSequence
- Append sequence to this sequence if it can be appended.
- Overrides:
appendSequence
in class KnuthSequence
- Following copied from class:
org.apache.fop.layoutmgr.KnuthSequence
- 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()
- Description copied from class:
KnuthSequence
- Finalizes a Knuth sequence.
- Overrides:
endSequence
in class KnuthSequence
- Following copied from class:
org.apache.fop.layoutmgr.KnuthSequence
- Returns:
- a finalized sequence.
addALetterSpace
public void addALetterSpace()
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.