org.apache.fop.layoutmgr

Class AbstractBreaker.BlockSequence

Enclosing Class:
AbstractBreaker

public class AbstractBreaker.BlockSequence
extends BlockKnuthSequence

Field Summary

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 Summary

BlockSequence(int iStartOn, int displayAlign)
Creates a new BlockSequence.

Method Summary

AbstractBreaker.BlockSequence
endBlockSequence(Position breakPosition)
KnuthSequence
endSequence()
Finalizes a Knuth sequence.
KnuthSequence
endSequence(Position breakPosition)
Finalizes a Knuth sequence.
int
getDisplayAlign()
int
getStartOn()

Methods inherited from class org.apache.fop.layoutmgr.BlockKnuthSequence

appendSequence, appendSequence, canAppendSequence, endSequence, isInlineSequence

Methods inherited from class org.apache.fop.layoutmgr.KnuthSequence

appendSequence, appendSequence, appendSequenceOrClose, appendSequenceOrClose, canAppendSequence, endSequence, getElement, getLast, isInlineSequence, removeLast, startSequence, wrapPositions

Field Details

ignoreAtEnd

public int ignoreAtEnd
Number of elements to ignore at the end of the list.

ignoreAtStart

public int ignoreAtStart
Number of elements to ignore at the beginning of the list.

Constructor Details

BlockSequence

public BlockSequence(int iStartOn,
                     int displayAlign)
Creates a new BlockSequence.
Parameters:
iStartOn - the kind of page the sequence should start on. One of EN_ANY, EN_COLUMN, EN_ODD_PAGE, EN_EVEN_PAGE.
displayAlign - the value for the display-align property

Method Details

endBlockSequence

public AbstractBreaker.BlockSequence endBlockSequence(Position breakPosition)

endSequence

public KnuthSequence endSequence()
Finalizes a Knuth sequence.
Overrides:
endSequence in interface BlockKnuthSequence
Returns:
a finalized sequence.

endSequence

public KnuthSequence endSequence(Position breakPosition)
Finalizes a Knuth sequence.
Parameters:
breakPosition - a Position instance for the last penalty (may be null)
Returns:
a finalized sequence.

getDisplayAlign

public int getDisplayAlign()
Returns:
the value for the display-align property

getStartOn

public int getStartOn()
Returns:
the kind of page the sequence should start on. One of EN_ANY, EN_COLUMN, EN_ODD_PAGE, EN_EVEN_PAGE.

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.