ImageBuilder

class ImageBuilder(image: Image)

Border image configurator class.

Constructors

Link copied to clipboard
fun ImageBuilder(image: Image)

Functions

Link copied to clipboard
fun build(): BorderImage

Return border image based on current configuration.

Properties

Link copied to clipboard
var insets: Insets? = null

The insets at which to place the border relative to the region. A null value results in Insets.EMPTY.

Link copied to clipboard
var isFilled: Boolean = false
Link copied to clipboard
var repeat: BorderRepeat?

The repeat value for the border image in the x and y direction. If null, defaults to BorderRepeat.STRETCH.

Link copied to clipboard
var repeatX: BorderRepeat? = null

The repeat value for the border image in the x direction. If null, defaults to BorderRepeat.STRETCH.

Link copied to clipboard
var repeatY: BorderRepeat? = null

The repeat value for the border image in the y direction. If null, defaults to the same value as repeatX.

Link copied to clipboard
var slices: BorderWidths? = null

The slices for the image. If null, defaults to BorderWidths.DEFAULT.

Link copied to clipboard
var widths: BorderWidths? = null

The widths of the border in each dimension. A null value results in BorderWidths.EMPTY.