Interface Formatter

  • All Known Implementing Classes:
    FormatterImpl

    public interface Formatter

    Provides text-only formatting.

    • Method Detail

      • getConfiguration

        FormatterConfiguration getConfiguration()
        Gets the formatter configuration.
        Returns:
        returns the formatter configuration
      • setConfiguration

        void setConfiguration​(FormatterConfiguration config)
        Sets the formatter configuration.
        Parameters:
        config - the configuration
      • newSequence

        FormatterSequence newSequence​(SequenceProperties props)
        Start a new Sequence at the current position in the flow.
        Parameters:
        props - the SequenceProperties for the new sequence
        Returns:
        returns a formatter core
      • newLayoutMaster

        LayoutMasterBuilder newLayoutMaster​(String name,
                                            LayoutMasterProperties properties)
        Creates a new LayoutMaster builder.
        Parameters:
        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 properties
        Returns:
        a layout master builder
      • getTransitionBuilder

        TransitionBuilder getTransitionBuilder()

        Gets the transition builder.

        Returns:
        returns the transition builder
      • newToc

        TableOfContents newToc​(String name)
        Creates a new table of contents with the supplied name.
        Parameters:
        name - the TOC identifier
        Returns:
        returns a new table of contents
      • newCollection

        ContentCollection newCollection​(String collectionIdentifier)
        Creates a new collection with the supplied identifier.
        Parameters:
        collectionIdentifier - the collection identifier
        Returns:
        returns a new collection
      • write

        void write​(PagedMediaWriter writer)
        Writes the current result to a paged media.
        Parameters:
        writer - the paged media writer to use