StringVisualizer

open class StringVisualizer(fitText: Set<Dimension>? = null) : ItemVisualizer<String, Any> (source)

Visualizes Strings using Labels.

Constructors

Link copied to clipboard
constructor(fitText: Set<Dimension>? = null)

Functions

Link copied to clipboard
open operator override fun invoke(item: String, previous: View?, context: Any): Label

Called whenever an item needs to be translated to a View.

Inherited functions

Link copied to clipboard
fun <T, R, C> ItemVisualizer<R, C>.after(mapper: (T) -> R): ItemVisualizer<T, C>

Creates a visualizer for T using a visualizer for R by mapping T -> R.

Link copied to clipboard
operator fun <T> ItemVisualizer<T, Any>.invoke(item: T, previous: View? = null): View