TypeIcon

data class TypeIcon(val base: Icon, val text: String, val colors: List<Color>) : Icon(source)

A colored icon with some text in it.

Constructors

Link copied to clipboard
constructor(base: Icon, text: String, colors: List<Color>)

Types

Link copied to clipboard
object Companion

Holds constants.

Properties

Link copied to clipboard
val base: Icon

The underlying icon which should be given color; must be square.

Link copied to clipboard
val colors: List<Color>

The colors to give to the base.

Link copied to clipboard
val text: String

The text to display inside the base.

Functions

Link copied to clipboard
open override fun getIconHeight(): Int

The height of the base icon.

Link copied to clipboard
open override fun getIconWidth(): Int

The width of the base icon.

Link copied to clipboard
open override fun paintIcon(c: Component?, g: Graphics?, x: Int, y: Int)

Paints the colored text icon.