apply Styles And Phrase Paths
fun applyStylesAndPhrasePaths(document: StyledDocument, stylesheet: Stylesheet, styleRecord: StylingRecord?, phrasePathRecord: PhrasePathRecord?)
Apply all style runs from the StylingRecord, and all PhraseNode information from the PhrasePathRecord, to the given StyledDocument, using the supplied stylesheet to obtain an appropriate rendering context for each style run.
It always starts by resetting the entire document to the default style.
Must be invoked on the Swing UI thread.
Parameters
document
The StyledDocument to update.
stylesheet
The stylesheet.
style Record
The StylingRecord containing runs to apply to the document.
phrase Path Record
The PhrasePathRecord containing PhraseNode runs to apply to the document.