Slider2d

A rectangular (often square) area where a point can be chosen.

Similar to SliderBase, except we have two independent values.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val children: ObservableList<Node>

The base class Node has no children, so this is an empty list.

Link copied to clipboard
Link copied to clipboard

The selected point's Y value as a ratio of the width

Link copied to clipboard
Link copied to clipboard

The selected point Y value as a ratio of the height

Link copied to clipboard
open override var readOnly: Boolean
Link copied to clipboard
Link copied to clipboard

The movable part

Link copied to clipboard

The fixed part

Functions

Link copied to clipboard
open override fun nodePrefHeight(): Float

Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun nodePrefWidth(): Float

Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.