OverlayedIcon

data class OverlayedIcon(val base: Icon, val overlays: List<Icon> = emptyList()) : Icon(source)

An icon with various icons displayed on top of it as overlays.

Constructors

Link copied to clipboard
constructor(base: Icon, overlays: List<Icon> = emptyList())

Types

Link copied to clipboard
object Companion

Holds constants.

Properties

Link copied to clipboard
val base: Icon

The underlying base icon.

Link copied to clipboard
val overlays: List<Icon>

The various icons that are overlayed on top of 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 scheme icon.

Link copied to clipboard
fun plusOverlay(icon: Icon): OverlayedIcon

Returns a copy of this icon that has icon as an additional overlay icon.