Class AbstractBreaker.BlockSequence
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.apache.fop.layoutmgr.KnuthSequence
org.apache.fop.layoutmgr.BlockKnuthSequence
org.apache.fop.layoutmgr.AbstractBreaker.BlockSequence
- All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess
- Enclosing class:
AbstractBreaker
Helper class, extending the functionality of the
basic
BlockKnuthSequence.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int(package private) intNumber of elements to ignore at the end of the list.(package private) intNumber of elements to ignore at the beginning of the list.private static final longprivate final intstartOn represents where on the page/which page layout should start for this BlockSequence.Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendBlockSequence(Position breakPosition) Finalizes a thisAbstractBreaker.BlockSequence, adding a terminating penalty-glue-penalty sequenceFinalizes a Knuth sequence.endSequence(Position breakPosition) Finalizes a Knuth sequence.intintMethods inherited from class BlockKnuthSequence
appendSequence, appendSequence, canAppendSequence, isInlineSequenceMethods inherited from class KnuthSequence
appendSequenceOrClose, appendSequenceOrClose, getElement, getFirstBoxIndex, getLast, removeLast, startSequence, toString, wrapPositionsMethods inherited from class 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 AbstractList
equals, hashCodeMethods inherited from class AbstractCollection
containsAllMethods inherited from interface Collection
parallelStream, streamMethods inherited from interface List
containsAll, equals, hashCode
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ignoreAtStart
int ignoreAtStartNumber of elements to ignore at the beginning of the list. -
ignoreAtEnd
int ignoreAtEndNumber of elements to ignore at the end of the list. -
startOn
private final int startOnstartOn represents where on the page/which page layout should start for this BlockSequence. Acceptable values: Constants.EN_ANY (can continue from finished location of previous BlockSequence?), EN_COLUMN, EN_ODD_PAGE, EN_EVEN_PAGE. -
displayAlign
private final int displayAlign
-
-
Constructor Details
-
BlockSequence
public BlockSequence(int startOn, int displayAlign) Creates a new BlockSequence.- Parameters:
startOn- the kind of page the sequence should start on. One ofConstants.EN_ANY,Constants.EN_COLUMN,Constants.EN_ODD_PAGE, orConstants.EN_EVEN_PAGE.displayAlign- the value for the display-align property
-
-
Method Details
-
getStartOn
public int getStartOn()- Returns:
- the kind of page the sequence should start on.
One of
Constants.EN_ANY,Constants.EN_COLUMN,Constants.EN_ODD_PAGE, orConstants.EN_EVEN_PAGE.
-
getDisplayAlign
public int getDisplayAlign()- Returns:
- the value for the display-align property
-
endSequence
Finalizes a Knuth sequence.- Overrides:
endSequencein classBlockKnuthSequence- Returns:
- a finalized sequence.
-
endSequence
Finalizes a Knuth sequence.- Parameters:
breakPosition- a Position instance for the last penalty (may be null)- Returns:
- a finalized sequence.
-
endBlockSequence
Finalizes a thisAbstractBreaker.BlockSequence, adding a terminating penalty-glue-penalty sequence- Parameters:
breakPosition- a Position instance pointing to the last penalty- Returns:
- the finalized
AbstractBreaker.BlockSequence
-