public interface TransitionBuilder
Provides a definition for volume transitions. A volume transition indicates that the rows on the last page or sheet of the volume may be moved in order to avoid breaking the volume inside a sentence or a paragraph.
When volume transition processing is activated, an implementation should break between paragraphs and, only if that's not possible, between sentences.
Content added to the BlockContentBuilder
s
returned by the methods of this interface should be inserted
when the text transitions from one volume to the next if and
only if the page layout is affected by a particular
volume transition. If the page layout is not affected, template
contents should not be inserted. For example, if the volume
transition takes place between two sequences.
Volume transition processing is deactivated by default. To activate,
set the TransitionBuilderProperties.ApplicationRange
using the method
setProperties(TransitionBuilderProperties)
.
Modifier and Type | Method and Description |
---|---|
BlockBuilder |
getAnyInterruptedBuilder()
Gets the builder for contents to add whenever a volume is
interrupted before a volume break.
|
BlockBuilder |
getAnyResumedBuilder()
Gets the builder for contents to add whenever a volume is resumed
after a volume break.
|
BlockContentBuilder |
getBlockInterruptedBuilder()
Gets the builder for contents to add when a block is interrupted
before a volume break.
|
BlockContentBuilder |
getBlockResumedBuilder()
Gets the builder for contents to add when a block is resumed after
a volume break.
|
TransitionBuilderProperties |
getProperties()
Gets the properties for this transition builder.
|
BlockBuilder |
getSequenceInterruptedBuilder()
Gets the builder for contents to add when a sequence is
interrupted before a volume break.
|
BlockBuilder |
getSequenceResumedBuilder()
Gets the builder for contents to add when a sequence is resumed
after a volume break.
|
void |
setProperties(TransitionBuilderProperties props)
Sets the properties for this transition builder.
|
TransitionBuilderProperties getProperties()
void setProperties(TransitionBuilderProperties props)
props
- the propertiesBlockContentBuilder getBlockResumedBuilder()
BlockContentBuilder getBlockInterruptedBuilder()
BlockBuilder getSequenceResumedBuilder()
BlockBuilder getSequenceInterruptedBuilder()
BlockBuilder getAnyResumedBuilder()
BlockBuilder getAnyInterruptedBuilder()