ColorVisual

open class ColorVisual(color: Color) : SingleLayerVisual

A solid color visual. Displays a rectangle filled with the given color.

Parameters

color

Color to use as filling.

Constructors

Link copied to clipboard
fun ColorVisual(    r: Int,     g: Int,     b: Int,     a: Int = 255)

Creates a solid ColorVisual filled with given RGBA values.

Link copied to clipboard
fun ColorVisual(color: Color)

Creates a solid ColorVisual filled with given Color.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addListener(listener: Observer)

Adds a listener silently.

Link copied to clipboard
fun addListenerAndInvoke(listener: Observer)

Adds a listener and calls Observer.update on this new listener.

Link copied to clipboard
fun clearListeners()

Removes all listeners.

Link copied to clipboard
open override fun copy(): ColorVisual

Copies this ColorVisual to a new object.

Link copied to clipboard
fun notifyChange()

Notifies all listeners by calling Observer.update.

Link copied to clipboard
fun removeListener(listener: Observer): Boolean

Removes a listener.

Properties

Link copied to clipboard
open var backgroundRadius: BackgroundRadius?

Background radius.

Link copied to clipboard
var backgroundRadiusProperty: Property<BackgroundRadius?>

Property for backgroundRadius.

Link copied to clipboard
open var borderColor: BorderColor?

Border color.

Link copied to clipboard
var borderColorProperty: Property<BorderColor?>

Property for borderColor.

Link copied to clipboard
open var borderRadius: BorderRadius?

Border radius.

Link copied to clipboard
var borderRadiusProperty: Property<BorderRadius?>

Property for borderRadius.

Link copied to clipboard
open var borderStyle: BorderStyle?

Border style.

Link copied to clipboard
var borderStyleProperty: Property<BorderStyle?>

Property for borderStyle.

Link copied to clipboard
open var borderWidth: BorderWidth?

Border width.

Link copied to clipboard
var borderWidthProperty: Property<BorderWidth?>

Property for borderWidth.

Link copied to clipboard
var color: Color

The displayed Color of this Visual.

Link copied to clipboard
val colorProperty: Property<Color>

Property for the displayed Color of this Visual.

Link copied to clipboard
open var cursor: Cursor?

Cursor.

Link copied to clipboard
var cursorProperty: Property<Cursor?>

Property for cursor.

Link copied to clipboard
var style: String

Css style that gets applied to this Visual.

Link copied to clipboard
val styleProperty: StringProperty

Property for the css style that gets applied to this Visual.

Link copied to clipboard
var transparency: Double

The transparency / alpha channel for this Visual.

Link copied to clipboard
val transparencyProperty: LimitedDoubleProperty

Property for the transparency / alpha channel for this Visual.