applyStylesAndPhrasePaths

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
styleRecord

The StylingRecord containing runs to apply to the document.

phrasePathRecord

The PhrasePathRecord containing PhraseNode runs to apply to the document.