Phrase Path Style Applicator
Utility for applying PhrasePathRecord's information to token ranges in a StyledDocument.
Types
Link copied to clipboard
An object to use as a key in an AttributeSet, where the value is a PhraseNode. This is applied to the StyledDocument for the span of each token that is part of that PhraseNode.
Link copied to clipboard
data class TokenStyle(val phraseNode: Repository.PhraseNode, val tokenIndexInName: Int)
Content copied to clipboard
A TokenStyle contains information about which PhraseNode is applicable for a span of source having this invisible style (under the PhraseNodeAttributeKey), as well as which of the phrase's atom's MessageSplitter parts occurred in this span of the source.
Functions
Link copied to clipboard
fun StyledDocument.applyPhrasePaths(phrasePathsRecord: Repository.PhrasePathRecord)
Content copied to clipboard
Apply all style runs to the receiver. Each style name is treated as a comma-separated composite. Rendered styles compose rather than replace. This must only be invoked on the Swing UI thread.