public class AbstractBreaker.BlockSequence extends BlockKnuthSequence
BlockKnuthSequence
.Modifier and Type | Field and Description |
---|---|
int |
ignoreAtEnd
Number of elements to ignore at the end of the list.
|
int |
ignoreAtStart
Number of elements to ignore at the beginning of the list.
|
Constructor and Description |
---|
AbstractBreaker.BlockSequence(int startOn,
int displayAlign)
Creates a new BlockSequence.
|
Modifier and Type | Method and Description |
---|---|
AbstractBreaker.BlockSequence |
endBlockSequence(Position breakPosition)
Finalizes a this
AbstractBreaker.BlockSequence , adding a terminating
penalty-glue-penalty sequence |
KnuthSequence |
endSequence()
Finalizes a Knuth sequence.
|
KnuthSequence |
endSequence(Position breakPosition)
Finalizes a Knuth sequence.
|
int |
getDisplayAlign() |
int |
getStartOn() |
appendSequence, appendSequence, canAppendSequence, isInlineSequence
appendSequenceOrClose, appendSequenceOrClose, getElement, getFirstBoxIndex, getFirstBoxIndex, getLast, removeLast, startSequence, toString, wrapPositions
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
public int ignoreAtStart
public int ignoreAtEnd
public AbstractBreaker.BlockSequence(int startOn, int displayAlign)
startOn
- the kind of page the sequence should start on.
One of Constants.EN_ANY
, Constants.EN_COLUMN
,
Constants.EN_ODD_PAGE
, or Constants.EN_EVEN_PAGE
.displayAlign
- the value for the display-align propertypublic int getStartOn()
Constants.EN_ANY
, Constants.EN_COLUMN
,
Constants.EN_ODD_PAGE
, or Constants.EN_EVEN_PAGE
.public int getDisplayAlign()
public KnuthSequence endSequence()
endSequence
in class BlockKnuthSequence
public KnuthSequence endSequence(Position breakPosition)
breakPosition
- a Position instance for the last penalty (may be null)public AbstractBreaker.BlockSequence endBlockSequence(Position breakPosition)
AbstractBreaker.BlockSequence
, adding a terminating
penalty-glue-penalty sequencebreakPosition
- a Position instance pointing to the last penaltyAbstractBreaker.BlockSequence
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.