CompoundVisual

open class CompoundVisual(children: List<SingleLayerVisual>) : Visual

A compound visual containing stacked SingleLayerVisuals.

Hint: Each SingleLayerVisual besides the bottom should have opacity in order to display all layers properly.

Parameters

children

Children SingleLayerVisuals in the order they should be displayed, where the first SingleLayerVisual gets displayed at the bottom of the stack.

Constructors

Link copied to clipboard
fun CompoundVisual(vararg children: SingleLayerVisual)

CompoundVisual constructor with vararg parameter for initial children.

Link copied to clipboard
fun CompoundVisual(children: List<SingleLayerVisual>)

Creates a CompoundVisual with given children as List.

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(): CompoundVisual

Copies this CompoundVisual to a new object recursively including children.

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 children: List<SingleLayerVisual>

The children of this stack. The first SingleLayerVisual gets displayed at the bottom of the stack.

Link copied to clipboard
val childrenProperty: ObservableArrayList<SingleLayerVisual>

ObservableList for the children of this stack. The first SingleLayerVisual gets displayed at the bottom of the stack.

Link copied to clipboard
open var cursor: Cursor?

Cursor.

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

Property for cursor.