AbbreviationCreator

This class allows text to be constructed to fit a given TextView, given specified BannerComponents containing abbreviation information and given a list of BannerComponentNodes, constructed by InstructionLoader.

Constructors

AbbreviationCreator
Link copied to clipboard
open fun AbbreviationCreator(abbreviationVerifier: AbbreviationVerifier, abbreviations: HashMap, textViewUtils: TextViewUtils)
AbbreviationCreator
Link copied to clipboard
open fun AbbreviationCreator(abbreviationVerifier: AbbreviationVerifier)
AbbreviationCreator
Link copied to clipboard
open fun AbbreviationCreator()

Types

AbbreviationNode
Link copied to clipboard
open class AbbreviationNode : BannerComponentNode
Class used by InstructionLoader to determine that a BannerComponent contains an abbreviation

Functions

isNodeType
Link copied to clipboard
open fun isNodeType(bannerComponents: BannerComponents): Boolean
postProcess
Link copied to clipboard
open fun postProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
Coordinators which make edits to the text after it's been populated into the text view shouldoverride this method.
preProcess
Link copied to clipboard
open fun preProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
One coordinator should override this method, and this should be the coordinator which populatesthe textView with text.
open fun preProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
One coordinator should override this method, and this should be the coordinator which populatesthe textView with text.
setupNode
Link copied to clipboard
open fun setupNode(components: BannerComponents, index: Int, startIndex: Int, modifier: String): AbbreviationCreator.AbbreviationNode
abstract fun setupNode(components: BannerComponents, index: Int, startIndex: Int, modifier: String): N