ImageView

class ImageView(image: Image?) : Region

Constructors

Link copied to clipboard
constructor(imageProperty: ObservableOptionalImage)
constructor(imageProperty: ObservableImage)
constructor(image: Image?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The required width of this ImageView, or the sentinel value USE_IMAGE_SIZE (-1), to use the image's height.

Link copied to clipboard
Link copied to clipboard

The required height of this ImageView, or the sentinel value USE_IMAGE_SIZE (-1), to use the image's width.

Link copied to clipboard
var image: Image?
Link copied to clipboard
Link copied to clipboard

Should the image's aspect ratio be maintained when fitWidth and/or fitHeight are set?

Link copied to clipboard
var tint: Color
Link copied to clipboard

Multiplies the image's pixels by this color. Often used in one of two ways :

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.

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