ResizableNamedImages

Used for images which can be resized on the fly. This is designed to be used by Icons, so that you can build the GUI Nodes, and then later, change the value of an iconSizeProperty, all icons will change size.

You can use more than one ResizableNamedImages, e.g. One for toolBar buttons, and another for buttons outside a toolBar.

Inheritors

Properties

Link copied to clipboard
abstract val iconSize: Int
Link copied to clipboard

Functions

Link copied to clipboard
abstract operator fun get(name: String): Image?

Returns an Image with the given name at the default size.

abstract fun get(name: String, size: Int): Image?

Returns an Image with the given name at the requested size.

Link copied to clipboard

Return an ObservableOptionalImage whose value changes whenever iconSizeProperty changes.

Link copied to clipboard
open fun resizableImage(name: String, iconSizeProperty: ObservableInt): ObservableOptionalImage?
Link copied to clipboard

Returns another view of the same named images, with an additional feature : See ResizableNamedImages.getResizable.