public interface Formatter
Provides text-only formatting.
Modifier and Type | Method and Description |
---|---|
FormatterConfiguration |
getConfiguration()
Gets the formatter configuration
|
TransitionBuilder |
getTransitionBuilder()
Gets the transition builder.
|
ContentCollection |
newCollection(String collectionIdentifier)
Creates a new collection with the supplied identifier
|
LayoutMasterBuilder |
newLayoutMaster(String name,
LayoutMasterProperties properties)
Creates a new LayoutMaster builder.
|
FormatterSequence |
newSequence(SequenceProperties props)
Start a new Sequence at the current position in the flow.
|
TableOfContents |
newToc(String name)
Creates a new table of contents with the supplied name
|
VolumeTemplateBuilder |
newVolumeTemplate(VolumeTemplateProperties props)
Creates a new empty volume template builder.
|
void |
setConfiguration(FormatterConfiguration config)
Sets the formatter configuration
|
void |
write(PagedMediaWriter writer)
Writes the current result to a paged media
|
FormatterConfiguration getConfiguration()
void setConfiguration(FormatterConfiguration config)
config
- the configurationFormatterSequence newSequence(SequenceProperties props)
props
- the SequenceProperties for the new sequenceLayoutMasterBuilder newLayoutMaster(String name, LayoutMasterProperties properties)
name
- The name of the LayoutMaster. This is the named used in when retrieving
a master for a particular sequence from the SequenceProperties
.properties
- the propertiesVolumeTemplateBuilder newVolumeTemplate(VolumeTemplateProperties props)
props
- propertiesTransitionBuilder getTransitionBuilder()
Gets the transition builder.
TableOfContents newToc(String name)
name
- the TOC identifierContentCollection newCollection(String collectionIdentifier)
collectionIdentifier
- the collection identifiervoid write(PagedMediaWriter writer)
writer
- the paged media writer to use