ScrollBar

class ScrollBar(orientation: Orientation = Orientation.HORIZONTAL) : Region

Part of a ScrollPane, but can also be used as a stand-alone component.

Constructors

Link copied to clipboard
constructor(orientation: Orientation = Orientation.HORIZONTAL)

Types

Link copied to clipboard
inner class Thumb : Region

Properties

Link copied to clipboard
Link copied to clipboard

How much to change value by, when the scroll bar is clicked (outside the thumb). Note, there is no unitIncrement

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
var max: Float
Link copied to clipboard
Link copied to clipboard
var min: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

How much to change value by from each scroll event`

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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

Each subclass of node can determine the minimum width it requires. This can be overridden on an ad-hoc basis using overrideMinHeight. The default implementation returns 0.

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

Each subclass of node can determine the minimum width it requires. This can be overridden on an ad-hoc basis using overrideMinWidth. The default implementation returns 0.

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.

Link copied to clipboard
fun scrollBy(delta: Float)
Link copied to clipboard
open override fun toString(): String