org.apache.fop.layoutmgr

Class InlineKnuthSequence


public class InlineKnuthSequence
extends KnuthSequence

Represents a list of inline Knuth elements. If closed, it represents all elements of a Knuth paragraph.

Constructor Summary

InlineKnuthSequence()
Creates a new and empty list.
InlineKnuthSequence(List list)
Creates a new list from an existing list.

Method Summary

void
addALetterSpace()
boolean
appendSequence(KnuthSequence sequence)
Append sequence to this sequence if it can be appended.
boolean
appendSequence(KnuthSequence sequence, boolean keepTogether, BreakElement breakElement)
Append sequence to this sequence if it can be appended.
boolean
canAppendSequence(KnuthSequence sequence)
Can sequence be appended to this sequence?
KnuthSequence
endSequence()
Finalizes a Knuth sequence.
boolean
isInlineSequence()
Is this an inline or a block sequence?

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

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

Constructor Details

InlineKnuthSequence

public InlineKnuthSequence()
Creates a new and empty list.

InlineKnuthSequence

public InlineKnuthSequence(List list)
Creates a new list from an existing list.
Parameters:
list - The list from which to create the new list.

Method Details

addALetterSpace

public void addALetterSpace()

appendSequence

public boolean appendSequence(KnuthSequence sequence)
Append sequence to this sequence if it can be appended.
Overrides:
appendSequence in interface 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)
Append sequence to this sequence if it can be appended.
Overrides:
appendSequence in interface 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.

canAppendSequence

public boolean canAppendSequence(KnuthSequence sequence)
Can sequence be appended to this sequence?
Overrides:
canAppendSequence in interface KnuthSequence
Parameters:
sequence - The sequence that may be appended.
Returns:
whether the sequence can be appended to this sequence.

endSequence

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

isInlineSequence

public boolean isInlineSequence()
Is this an inline or a block sequence?
Overrides:
isInlineSequence in interface KnuthSequence
Returns:
false

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